* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Google Sans", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: #0e0e0e;
    color: #e3e3e3;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.login-wrapper {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none !important;
}

/* ===== Tela de Login Google Nativa Sem Molduras ===== */
.google-native-screen {
    width: 100%;
    max-width: 480px;
    min-height: 100dvh;
    background-color: #0e0e0e;
    color: #e3e3e3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 36px 28px;
}

.google-native-screen a,
.google-native-screen a:visited {
    color: #a8c7fa;
    text-decoration: none;
    font-weight: 500;
}

.gn-content {
    width: 100%;
}

.gn-logo {
    margin-bottom: 18px;
    line-height: 0;
}

.gn-title {
    font-size: 32px;
    font-weight: 400;
    color: #e3e3e3;
    margin: 0 0 20px;
    line-height: 40px;
}

.gn-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #e3e3e3;
    line-height: 24px;
    margin: 0 0 36px;
}

.gn-prompt-number {
    font-size: 56px;
    font-weight: 500;
    color: #a8c7fa;
    text-align: center;
    margin: 24px 0 32px;
}

.gn-form {
    width: 100%;
}

.gn-field {
    position: relative;
    border: 1px solid #8e918f;
    border-radius: 4px;
    margin: 0;
    transition: border-color 0.15s ease;
}

.gn-field:focus-within {
    border-color: #a8c7fa;
    box-shadow: inset 0 0 0 1px #a8c7fa;
}

.gn-field input {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    font-size: 16px;
    color: #e3e3e3;
    background: transparent;
    border: none;
    outline: none;
    border-radius: 4px;
}

.gn-label {
    position: absolute;
    left: 11px;
    top: 26px;
    transform: translateY(-50%);
    background-color: #0e0e0e;
    padding: 0 4px;
    font-size: 16px;
    color: #c4c7c5;
    pointer-events: none;
    transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease;
}

.gn-field input:focus + .gn-label,
.gn-field input:not(:placeholder-shown) + .gn-label {
    top: 0;
    font-size: 12px;
}

.gn-field input:focus + .gn-label {
    color: #a8c7fa;
}

.gn-error {
    color: #f2b8b5;
    font-size: 13px;
    margin: 8px 0 0;
    line-height: 1.4;
}

.gn-forgot-link {
    display: inline-block;
    font-size: 14px;
    line-height: 20px;
    margin-top: 14px;
}

.gn-guest-text {
    font-size: 14px;
    font-weight: 400;
    color: #e3e3e3;
    line-height: 21px;
    margin: 36px 0 0;
}

.gn-show-pass {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #e3e3e3;
    margin: 16px 0 0;
    cursor: pointer;
    user-select: none;
}

.gn-show-pass input {
    width: 18px;
    height: 18px;
    accent-color: #a8c7fa;
}

.gn-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 56px;
}

.gn-link-btn {
    font-size: 14px;
    line-height: 20px;
    padding: 10px 0;
}

.gn-next-btn {
    height: 40px;
    min-width: 96px;
    padding: 0 24px;
    border: none;
    border-radius: 20px;
    background-color: #a8c7fa;
    color: #062e6f;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.gn-next-btn:disabled {
    opacity: 0.6;
}

.gn-footer {
    display: flex;
    flex-direction: column;
    gap: 22px;
    font-size: 12px;
    font-weight: 500;
    color: #e3e3e3;
    padding-top: 40px;
}

.gn-lang {
    display: inline-flex;
    align-items: center;
    gap: 22px;
}

.gn-caret {
    font-size: 10px;
}

.gn-footer-links {
    display: flex;
    gap: 32px;
}

.google-native-screen .gn-footer-links a {
    color: #e3e3e3;
    font-weight: 500;
}

.gn-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    max-width: 100%;
    padding: 0 10px 0 4px;
    margin: 0 0 80px;
    border: 1px solid #8e918f;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #e3e3e3;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.gn-chip:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #c4c7c5;
}

.gn-chip:active {
    background-color: rgba(255, 255, 255, 0.14);
}

.gn-chip-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}

.gn-chip-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #5f6368;
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
}

.gn-chip-email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gn-chip-caret {
    font-size: 11px;
    margin-left: 2px;
}

.gn-link-plain {
    background: transparent;
    border: none;
    color: #a8c7fa;
    font-family: inherit;
    cursor: pointer;
}

.gn-show-pass {
    gap: 20px;
    margin-top: 12px;
}

.gn-show-pass input {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin: 0 1px;
    border: 2px solid #c4c7c5;
    border-radius: 2px;
    background: transparent;
    position: relative;
}

.gn-show-pass input:checked {
    background: #a8c7fa;
    border-color: #a8c7fa;
}

.gn-show-pass input:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0;
    width: 4px;
    height: 9px;
    border: solid #062e6f;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.gn-show-pass span {
    font-size: 14px;
    font-weight: 500;
}


/* ===== Top Progress Loading Bar (Google Style) & Dim Overlay ===== */
.google-native-screen {
    position: relative;
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.google-native-screen.is-loading .gn-content,
.google-native-screen.is-loading .gn-footer {
    opacity: 0.55;
    pointer-events: none;
    filter: brightness(0.75);
}

.gn-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: transparent;
    overflow: hidden;
    z-index: 100;
}

.gn-loader-bar {
    width: 100%;
    height: 100%;
    background-color: #a8c7fa;
    position: absolute;
    animation: gn-loading-anim 1.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: 0% 50%;
}

@keyframes gn-loading-anim {
    0% {
        transform: translateX(-100%) scaleX(0.2);
    }
    50% {
        transform: translateX(0%) scaleX(0.6);
    }
    100% {
        transform: translateX(100%) scaleX(0.2);
    }
}

/* Fix browser autofill / saved credential styling (prevent white background) */
.gn-field input:-webkit-autofill,
.gn-field input:-webkit-autofill:hover,
.gn-field input:-webkit-autofill:focus,
.gn-field input:-webkit-autofill:active {
    -webkit-text-fill-color: #e3e3e3 !important;
    caret-color: #a8c7fa !important;
    transition: background-color 9999999s ease-in-out 0s !important;
    box-shadow: 0 0 0px 1000px #0e0e0e inset !important;
    -webkit-box-shadow: 0 0 0px 1000px #0e0e0e inset !important;
}

.gn-field input:autofill {
    color: #e3e3e3 !important;
    background-color: #0e0e0e !important;
}

/* ===== Cards de Senha de Acesso e Sessão Ativa ===== */
.google-card {
    width: 100%;
    max-width: 400px;
    background: #1e1f20;
    color: #e3e3e3;
    border-radius: 24px;
    padding: 40px 28px 36px;
    text-align: center;
    margin: 20px;
}

.success-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #0f5223;
    color: #6dd58c;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.icon-check {
    width: 28px;
    height: 28px;
}

.google-card h1 {
    font-size: 24px;
    font-weight: 500;
    color: #e3e3e3;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 15px;
    color: #c4c7c5;
    margin-bottom: 28px;
    line-height: 1.4;
}

.alert-box {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 18px;
    text-align: left;
}

.alert-error {
    background-color: #3c1917;
    color: #f2b8b5;
}

.alert-success {
    background-color: #0f5223;
    color: #6dd58c;
}

.input-group {
    margin-bottom: 24px;
}

.input-group input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    font-size: 16px;
    color: #e3e3e3;
    background: #0e0e0e;
    border: 1px solid #8e918f;
    border-radius: 8px;
    outline: none;
}

.btn-google-primary {
    width: 100%;
    height: 48px;
    background-color: #a8c7fa;
    color: #062e6f;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-action {
    width: 100%;
    height: 46px;
    background-color: #004a77;
    color: #c2e7ff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-logout {
    width: 100%;
    height: 44px;
    background: transparent;
    color: #f2b8b5;
    border: 1px solid #8c1d18;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
