/* Estilos exclusivos da rota /login. */
:root {
    --portal-blue: #1f97e8;
    --portal-blue-hover: #1686d2;
    --portal-background: #07111f;
    --portal-surface: #0b1728;
    --portal-border: rgba(198, 216, 237, .16);
    --portal-text: #edf3fa;
    --portal-muted: #a6b3c2;
}

.login-page {
    min-height: 100vh;
    color: var(--portal-text);
    background:
        radial-gradient(circle at 50% -18%, rgba(31, 151, 232, .3), transparent 34rem),
        linear-gradient(145deg, #06111f 0%, #0a2340 52%, #06111f 100%);
}

.login-page #app,
.login-page .login {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.login-page .login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background: transparent;
}

.login-page .portal-login-container {
    width: min(100%, 430px);
    margin: 0;
}

.login-page .portal-login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: none !important;
    margin: 0 0 32px;
}

.login-page .beta-logo {
    width: 194px;
    height: auto;
    margin-bottom: 16px;
    opacity: .95;
}

.login-page .portal-brand {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding-top: 15px;
    color: var(--portal-text);
}

.login-page .portal-brand::before {
    width: 42px;
    height: 2px;
    margin-bottom: 13px;
    border-radius: 99px;
    content: '';
    background: var(--portal-blue);
}

.login-page .portal-brand-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    text-align: center;
}

.login-page .portal-brand-name small {
    margin-bottom: 5px;
    color: #c0d2e4;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .18em;
}

.login-page .portal-brand-name strong {
    color: #f7fbff;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: .06em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

.login-page .login-body {
    border: 1px solid var(--portal-border);
    border-radius: 16px;
    background: var(--portal-surface);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
}

.login-page .login-content {
    padding: 32px;
    background: transparent;
}

.portal-login-intro {
    margin-bottom: 28px;
    text-align: center;
}

.portal-login-intro h1 {
    margin: 0;
    color: var(--portal-text);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.portal-login-intro p {
    margin: 7px 0 0;
    color: var(--portal-muted);
    font-size: 14px;
    line-height: 1.5;
}

.portal-field {
    display: flex;
    align-items: center;
    min-height: 62px;
    margin-bottom: 12px;
    padding: 9px 12px;
    border: 1px solid var(--portal-border);
    border-radius: 10px;
    background: rgba(2, 10, 21, .3);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.portal-field:focus-within {
    border-color: rgba(83, 162, 235, .85);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, .14);
}

.portal-field-icon {
    width: 32px;
    color: #75a6d7;
    font-size: 16px;
    text-align: center;
}

.portal-field-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    margin-left: 9px;
}

.portal-field label {
    margin: 0 0 2px;
    color: #b9c8d8;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.portal-field input {
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--portal-text);
    font-size: 14px;
    line-height: 20px;
    background: transparent;
}

.portal-field input::placeholder { color: #718197; opacity: 1; }

.password-toggle {
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 6px;
    color: #9ab9d7;
    font-size: 15px;
    background: transparent;
}

.password-toggle:hover,
.password-toggle:focus {
    outline: none;
    color: #fff;
    background: rgba(150, 188, 224, .12);
}

.portal-login-button {
    width: 100%;
    min-height: 50px;
    margin-top: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    background: var(--portal-blue);
    transition: background .15s ease, box-shadow .15s ease;
}

.portal-login-button:hover,
.portal-login-button:focus {
    color: #fff;
    outline: none;
    background: var(--portal-blue-hover);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, .2);
}

.portal-login-button:active { box-shadow: none; }

.portal-login-help {
    margin-top: 22px;
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.portal-login-help a {
    color: #84bcf0;
    font-weight: 600;
    text-decoration: none;
}

.portal-login-help a:hover,
.portal-login-help a:focus { color: #b5d9fb; text-decoration: underline; }

@media (max-width: 575.98px) {
    .login-page .login { padding: 32px 16px; }
    .login-page .portal-login-header { margin-bottom: 24px; }
    .login-page .beta-logo { width: 174px; margin-bottom: 12px; }
    .login-page .portal-brand-name strong { font-size: 23px; }
    .login-page .login-content { padding: 27px 22px; }
    .portal-login-intro { margin-bottom: 24px; }
}

@media (min-width: 576px) and (max-height: 780px) {
    .login-page .login { padding: 24px 20px; }
    .login-page .portal-login-header { margin-bottom: 20px; }
    .login-page .beta-logo { width: 170px; margin-bottom: 10px; }
    .login-page .login-content { padding: 24px 28px; }
    .portal-login-intro { margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .portal-field,
    .portal-login-button { transition: none; }
}
