@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: #0F172A;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.ambient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: floatOrb 16s ease-in-out infinite alternate;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #5C52E5, #9333EA);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
    bottom: -80px;
    right: -80px;
    animation-duration: 20s;
    animation-direction: alternate-reverse;
}

.orb-3 {
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, #EC4899, #F43F5E);
    top: 40%;
    left: 60%;
    animation-duration: 14s;
}

@keyframes floatOrb {
    0% { transform: translate(0px, 0px) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.12); }
    100% { transform: translate(-40px, 70px) scale(0.95); }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 2;
    pointer-events: none;
}

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    transform: translateY(-6vh);
}

.login-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.brand-header {
    text-align: center;
    margin-bottom: 24px;
}

.brand-logo-img {
    max-height: 46px;
    max-width: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}

.brand-logo-fallback {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #5C52E5, #7C3AED);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(92, 82, 229, 0.35);
    margin-bottom: 12px;
}

.brand-title {
    font-size: 20px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.4px;
}

.brand-subtitle {
    font-size: 12.5px;
    color: #64748B;
    margin-top: 3px;
    font-weight: 500;
}

.google-section-box {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.google-btn-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
}

.google-btn-wrapper iframe {
    margin: 0 auto !important;
}

.custom-google-btn {
    width: 100%;
    max-width: 356px;
    height: 42px;
    background: #FFFFFF;
    border: 1px solid #DADCE0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
    text-decoration: none;
    user-select: none;
}

.custom-google-btn:hover {
    background: #F8FAFD;
    border-color: #C2D7FA;
    box-shadow: 0 2px 6px rgba(60, 64, 67, 0.15);
}

.custom-google-btn span {
    font-size: 14px;
    font-weight: 600;
    color: #3C4043;
    letter-spacing: 0.2px;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0;
    color: #94A3B8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E2E8F0;
}

.auth-divider:not(:empty)::before { margin-right: 12px; }
.auth-divider:not(:empty)::after { margin-left: 12px; }

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 15px;
    color: #94A3B8;
}

.form-control {
    width: 100%;
    padding: 12px 42px 12px 40px;
    border-radius: 12px;
    border: 1.5px solid #E2E8F0;
    background: #F8FAFC;
    font-size: 13.5px;
    font-weight: 500;
    color: #0F172A;
    transition: all 0.25s ease;
    outline: none;
}

.form-control:focus {
    border-color: #5C52E5;
    background: #FFFFFF;
    box-shadow: 0 0 0 3.5px rgba(92, 82, 229, 0.12);
}

.btn-toggle-pwd {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94A3B8;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.btn-toggle-pwd:hover { color: #5C52E5; }

.remember-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
}

.remember-box input[type="checkbox"] {
    accent-color: #5C52E5;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.remember-box span {
    font-size: 12.5px;
    color: #475569;
    font-weight: 600;
}

.btn-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #5C52E5, #6D28D9);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(92, 82, 229, 0.35);
    transition: all 0.25s ease;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(92, 82, 229, 0.45);
}

.btn-submit svg {
    stroke: currentColor;
    fill: none;
}

.support-link {
    text-align: center;
    margin-top: 24px;
    font-size: 12.5px;
    color: #64748B;
    font-weight: 500;
}

.support-link a {
    color: #5C52E5;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.support-link a:hover {
    color: #4B41D8;
    text-decoration: underline;
}

.alert-error {
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FCA5A5;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recaptcha-v3-badge-notice {
    font-size: 10px;
    color: #94A3B8;
    text-align: center;
    margin-top: 18px;
    line-height: 1.4;
}

.recaptcha-v3-badge-notice a {
    color: #64748B;
    text-decoration: none;
}

.recaptcha-v3-badge-notice a:hover {
    text-decoration: underline;
}

.login-footer-text {
    text-align: center;
    margin-top: 14px;
    font-size: 11px;
    color: #94A3B8;
    font-weight: 500;
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 22px;
        border-radius: 18px;
    }
    .login-wrapper {
        transform: translateY(-8vh);
    }
}