*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --dark: #1a2535;
    --dark-light: #243044;
    --blue: #2196f3;
    --blue-light: #29b6f6;
    --blue-hover: #039be5;
    --green: #66bb6a;
    --green-hover: #57a85b;
    --orange: #ffa726;
    --orange-hover: #ef9a1e;
    --border: #dde2ea;
    --input-bg: #f5f7fa;
    --text-main: #1a2535;
    --text-muted: #7a8899;
    --white: #ffffff;
    --radius: 8px;
    --shadow: 0 2px 16px rgba(26, 37, 53, 0.10);
    --accent: #d94a4a;
    --accent-light: #fbece8;
}

html,
body {
    height: 100%;
    font-family: 'Nunito', sans-serif;
    background: #edf1f7;
}

.page {
    min-height: 100vh;
    display: flex;
}

.left {
    flex: 1;
    background: url(/apresentacao/admin-panel/img/banner_login.png) no-repeat center center;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.left::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .3);
    z-index: 1;
}

.left > * {
    z-index: 2;
}

.logo-top {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 80px;
    height: 80px;
    fill: #E3E8F5;
}

.right {
    width: 460px;
    min-width: 340px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: -4px 0 32px rgba(26, 37, 53, 0.08);
}

svg.logo-svg {
    fill: #727272;
    height: 100%;
}

.right-logo {
    margin-bottom: 1.5rem;
}

.avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #edf1f7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 2px solid #e0e5ef;
}

.avatar svg {
    display: block;
}

.form {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 10px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.field-icon {
    position: absolute;
    left: 13px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.field input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Nunito', sans-serif;
    font-size: 14.5px;
    color: var(--text-main);
    background: var(--input-bg);
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.field input::placeholder {
    color: #b0bac8;
}

.field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.12);
    background: #fff;
}

.field input.input-error {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 74, 74, 0.10);
}

.eye-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.15s;
    z-index: 1;
}

.eye-btn:hover {
    color: var(--dark);
}

.error-msg {
    display: none;
    width: 100%;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 13px;
    margin-top: 5px;
    border: 1px solid var(--accent);
    text-align: center;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-weight: 700;
    line-height: 1.4;
}

.error-msg.show {
    display: block;
    animation: fadeIn .22s ease;
}

.atencao-msg {
    display: none;
    width: 100%;
    background: #fff8e1;
    color: #b45309;
    font-size: 13px;
    margin-top: 5px;
    border: 1px solid #fbbf24;
    text-align: center;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-weight: 700;
    line-height: 1.4;
}

.atencao-msg.show {
    display: block;
    animation: fadeIn .22s ease;
}

.btn {
    width: 100%;
    padding: 11.5px;
    border: none;
    border-radius: var(--radius);
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.18s, transform 0.1s, opacity 0.18s;
    letter-spacing: 0.3px;
    text-decoration: none;
    text-shadow: 1px 1px 1px #999;
}

.btn:hover {
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn-entrar {
    background: var(--blue-light);
    color: #fff;
    margin-top: 8px;
}

.btn-entrar:hover:not(:disabled) {
    background: var(--blue-hover);
}

.btn-row {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    margin-top: 22px;
}

.btn-cadastre {
    flex: 1;
    background: var(--green);
    color: #fff;
    font-size: 13px;
    padding: 9.5px;
}

.btn-cadastre:hover {
    background: var(--green-hover);
}

.btn-esqueceu {
    flex: 1;
    background: var(--orange);
    color: #fff;
    font-size: 13px;
    padding: 9.5px;
}

.btn-esqueceu:hover {
    background: var(--orange-hover);
}

.footer-copy {
    margin-top: 1.5rem;
    font-size: 13.5px;
    color: #b0bac8;
    text-align: center;
}

@-webkit-keyframes pulse {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  50% {
    -webkit-transform: scale3d(1.05, 1.05, 1.05);
    transform: scale3d(1.05, 1.05, 1.05);
  }

  100% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

@keyframes pulse {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  50% {
    -webkit-transform: scale3d(1.05, 1.05, 1.05);
    transform: scale3d(1.05, 1.05, 1.05);
  }

  100% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

div#splash {
    display: flex;
    position: fixed;
    z-index: 999999;
    background-color: #484f55;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
}

div#splash img {
    width: 100%;
    max-width: 512px;
    animation: pulse 2s infinite;
}

.box-cookies {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 16px 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.3s ease;
}

.box-cookies.hide {
    display: none;
}

.msg-cookies {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    flex: 1;
}

.msg-cookies a {
    color: #2ea8df;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.msg-cookies a:hover {
    color: #1d8cc0;
    text-decoration: underline;
}

.btn-cookies {
    background: #2ea8df;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-cookies:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(46, 168, 223, 0.25);
}

.btn-cookies:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .left {
        display: none;
    }

    .right {
        width: 100%;
        min-width: 0;
        padding: 2rem 1.5rem;
    }

    .box-cookies {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }

    .msg-cookies {
        font-size: 13px;
    }

    .btn-cookies {
        width: 100%;
    }
}