/* ==========================================================================
   LOGIN PAGE STYLES - MOWURA AI (login.html)
   ========================================================================== */

.login-container {
    min-height: calc(100vh - 160px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 15px;
    background: radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 60%), #000000;
}

.login-box {
    background-color: #09090e;
    border: 1px solid #1f1f28;
    padding: 38px 32px;
    border-radius: 16px;
    width: 100%;
    max-width: 430px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    text-align: center;
    position: relative;
}

.login-box h2 {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.login-box p.subtitle {
    color: #888894;
    font-size: 13px;
    margin-bottom: 24px;
}

/* Demo Credentials Hint Badge */
.demo-hint-badge {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 11.5px;
    color: #c4b5fd;
    text-align: left;
    margin-bottom: 20px;
    line-height: 1.5;
}

.demo-hint-badge strong {
    color: #ffffff;
}

/* Error Banner in Main Form */
.login-error-banner {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12px;
    color: #fca5a5;
    text-align: left;
    margin-bottom: 18px;
    display: none;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
    animation: fadeIn 0.25s ease-out;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background-color: #ffffff;
    color: #1f1f1f;
    padding: 13px 18px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-google:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.btn-google svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    margin: 22px 0;
    color: #555562;
    font-size: 12px;
    font-weight: 500;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #1e1e28;
}

.login-divider span {
    padding: 0 12px;
    text-transform: uppercase;
    font-size: 10.5px;
    letter-spacing: 0.5px;
}

/* Traditional Form Inputs */
.login-form-group {
    text-align: left;
    margin-bottom: 16px;
}

.login-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.login-form-group input {
    width: 100%;
    padding: 11px 14px;
    background: #121218;
    border: 1px solid #282834;
    border-radius: 8px;
    color: #ffffff;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form-group input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.btn-submit-login {
    width: 100%;
    padding: 12px;
    background: #8b5cf6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
}

.btn-submit-login:hover {
    background: #7c3aed;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

/* ==========================================================================
   AUTHENTIC GOOGLE OAUTH MODAL DIALOG
   ========================================================================== */
.google-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 16px;
}

.google-dialog-card {
    background: #ffffff;
    color: #202124;
    width: 100%;
    max-width: 440px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    overflow: hidden;
    animation: zoomInDialog 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomInDialog {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Google Loading Progress Bar (Top) */
.google-progress-bar {
    height: 3px;
    width: 100%;
    background: #e0e0e0;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.google-progress-bar-fill {
    height: 100%;
    background: #1a73e8;
    animation: googleProgress 1.4s infinite ease-in-out;
}

@keyframes googleProgress {
    0% { width: 0%; transform: translateX(-100%); }
    50% { width: 70%; transform: translateX(50%); }
    100% { width: 100%; transform: translateX(200%); }
}

.google-dialog-body {
    padding: 36px 36px 28px 36px;
}

.google-dialog-header {
    text-align: center;
    margin-bottom: 22px;
}

.google-g-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px auto;
    display: block;
}

.google-title {
    font-size: 22px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.google-subtitle {
    font-size: 14px;
    color: #5f6368;
}

/* Google User Account Pill (for Password Step) */
.google-user-capsule {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 12px 3px 4px;
    border: 1px solid #dadce0;
    border-radius: 20px;
    font-size: 13px;
    color: #3c4043;
    font-weight: 500;
    margin: 12px 0 20px 0;
    cursor: pointer;
    transition: background-color 0.15s;
}

.google-user-capsule:hover {
    background: #f8f9fa;
}

.google-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1a73e8;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Google Account Picker List */
.google-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0 20px 0;
}

.google-account-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.google-account-item:hover {
    background-color: #f8f9fa;
    border-color: #bdc1c6;
}

.google-acc-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.google-acc-avatar.blue { background-color: #1a73e8; }
.google-acc-avatar.red { background-color: #ea4335; }
.google-acc-avatar.gray { background-color: #5f6368; }

.google-acc-info .name {
    font-size: 13.5px;
    font-weight: 500;
    color: #202124;
}

.google-acc-info .email {
    font-size: 12px;
    color: #5f6368;
}

/* Google Outline Input Field */
.google-field-container {
    margin-bottom: 16px;
    text-align: left;
}

.google-input-box {
    position: relative;
    width: 100%;
}

.google-input-box input {
    width: 100%;
    padding: 13px 14px;
    font-size: 15px;
    color: #202124;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.google-input-box input:focus {
    border: 2px solid #1a73e8;
    padding: 12px 13px; /* keep total padding consistent */
}

.google-input-box.has-error input {
    border: 2px solid #d93025 !important;
}

/* Google Error Message Box */
.google-error-msg {
    color: #d93025;
    font-size: 12px;
    display: none;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    line-height: 1.45;
    text-align: left;
}

.google-error-msg.visible {
    display: flex;
}

.google-error-msg svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Google Show Password Checkbox */
.google-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 20px 0;
    font-size: 13px;
    color: #3c4043;
    cursor: pointer;
    text-align: left;
}

.google-checkbox-row input {
    width: 16px;
    height: 16px;
    accent-color: #1a73e8;
    cursor: pointer;
}

/* Google Dialog Footer Actions */
.google-dialog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
}

.btn-google-text {
    background: transparent;
    border: none;
    color: #1a73e8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.15s;
    font-family: inherit;
}

.btn-google-text:hover {
    background: rgba(26, 115, 232, 0.08);
}

.btn-google-primary {
    background: #1a73e8;
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 9px 24px;
    border-radius: 4px;
    transition: background-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.btn-google-primary:hover {
    background: #1557b0;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
}

.btn-google-primary:disabled {
    background: #dadce0;
    color: #80868b;
    cursor: not-allowed;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }

    .google-dialog-body {
        padding: 24px 20px 20px 20px;
    }
}