/* Container alignment - exact horizontal & vertical centering */
.login-panel {
    min-height: calc(100vh - var(--topbar-height));
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertical center */
    align-items: center;
    /* Horizontal center */
    padding: 1.5rem 1rem;
    box-sizing: border-box;
}

/* Ensure content block centers its child card horizontally */
.login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 440px;
}

/* Glassmorphic card styling */
.login-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    text-align: center;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

/* Center aligned brand logo header matching layout.css */
.login-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.login-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.g_id_signin {
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.g_id_signin > div,
.g_id_signin iframe {
    max-width: 100% !important;
}

.login-error-message {
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

/* Official Google Button Styling */
.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: #ffffff;
    color: #1f2937;
    border: 1px solid #cbd5e1;
    border-radius: 500px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.3, 0, 0, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.btn-google:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

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

.google-icon {
    flex-shrink: 0;
}

/* Terms & First-Time Notice */
.terms-notice {
    margin-top: 1.75rem;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.45;
}

@media (max-width: 480px) {
    .login-card {
        padding: 2rem 0.75rem;
        border-radius: 20px;
        overflow: hidden;
    }

    .login-title {
        font-size: 1.4rem;
    }
}
