* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(202,165,77,.16), transparent 35%),
        linear-gradient(135deg, #06111f, #0b2340 55%, #071527);
    overscroll-behavior: none;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
}

.login-container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overscroll-behavior: none;
}

.login-card {
    width: 100%;
    max-width: 410px;
    max-height: calc(100dvh - 24px);
    background: rgba(255,255,255,.97);
    padding: 22px 28px 24px;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,.30);
    border: 1px solid rgba(255,255,255,.45);
    text-align: center;
    overflow: hidden;
}

.login-logo-area {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.login-logo {
    width: 220px;
    max-width: 100%;
    height: auto;
    display: block;
}

.login-card h1 {
    color: #071527;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.login-card p {
    color: #7b8591;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 18px;
}

.erro {
    background: #fee2e2;
    color: #991b1b;
    padding: 11px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    text-align: center;
}

form {
    text-align: left;
}

.input-group {
    position: relative;
    margin-bottom: 12px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #8a97a8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.input-group input {
    width: 100%;
    height: 48px;
    padding-left: 48px;
    padding-right: 14px;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 400;
    color: #1e293b;
    outline: none;
    transition: .25s;
}

.input-group input::placeholder {
    color: #9aa5b5;
    font-weight: 300;
}

.input-group input:focus {
    background: #ffffff;
    border-color: #12345a;
    box-shadow: 0 0 0 4px rgba(18,52,90,.08);
}

.linha-opcoes {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 2px 0 18px;
    font-size: 12.5px;
    font-weight: 400;
    white-space: nowrap;
}

.linha-opcoes label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4b5563;
    cursor: pointer;
    flex-shrink: 0;
}

.linha-opcoes input {
    accent-color: #071527;
}

.linha-opcoes a {
    color: #12345a;
    font-weight: 400;
    text-decoration: none;
    flex-shrink: 0;
}

.linha-opcoes a:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #071527, #12345a);
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: .5px;
    cursor: pointer;
    transition: .25s;
    box-shadow: 0 12px 24px rgba(7,21,39,.20);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(7,21,39,.28);
}

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

.seguro {
    margin-top: 14px;
    padding-top: 11px;
    border-top: 1px solid #eef2f7;
    color: #7b8591;
    font-size: 12px;
    font-weight: 300;
    text-align: center;
}

@supports (-webkit-touch-callout: none) {
    html,
    body {
        min-height: -webkit-fill-available;
    }

    .login-container {
        min-height: -webkit-fill-available;
    }
}

@media (max-width: 480px) {
    html,
    body {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    body {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .login-container {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        padding: 10px;
    }

    .login-card {
        max-width: 100%;
        max-height: calc(100dvh - 20px);
        padding: 20px 16px 22px;
        border-radius: 20px;
    }

    .login-logo {
        width: 200px;
    }

    .login-card h1 {
        font-size: 22px;
        margin-bottom: 5px;
    }

    .login-card p {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .input-group {
        margin-bottom: 11px;
    }

    .input-group input {
        height: 46px;
        font-size: 13.5px;
    }

    .linha-opcoes {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        font-size: 11.5px;
        white-space: nowrap;
    }

    .btn-login {
        height: 46px;
        font-size: 14px;
    }

    .seguro {
        margin-top: 12px;
        padding-top: 10px;
        font-size: 11.5px;
    }
}