/* Login Two-Column Layout */

body {
    background: #0f172a;
    /* Deep matte navy */
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: block;
    /* Override flex */
    background-image: none;
    /* Reset main bg */
}

/* Container */
.auth-split-layout {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 100vh;
    width: 100%;
}

/* Left Panel */
.auth-left-panel {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Branding */
.brand-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-headline {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.auth-subtext {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 90%;
}

/* Feature List */
.feature-checklist {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.check-item i {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 4px;
    font-size: 1.2rem;
}

/* Decorative Icons */
.floating-icon-bg {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 8rem;
    bottom: 10%;
    right: 10%;
    transform: rotate(-15deg);
}


/* Right Panel */
.auth-right-panel {
    background: #0a1019;
    /* Very Dark Navy */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    box-shadow: inset 10px 0 20px -10px rgba(0, 0, 0, 0.5);
    /* Shadow from left panel */
}

/* The Login Wrapper inside Right Panel */
.login-wrapper {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Tabs */
.role-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.6);
    padding: 0.4rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    margin-bottom: 2rem;
}

.role-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.role-tab:hover:not(.active) {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.role-tab.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
}

/* Card */
.login-card {
    background: transparent;
    border: none;
    padding: 0;
}

.card-header {
    text-align: left;
    margin-bottom: 2.5rem;
}

.card-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    color: white;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.card-header p {
    color: #94a3b8;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-with-icon {
    position: relative;
    transition: all 0.3s ease;
}

.input-with-icon input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 100%;
    padding: 1.1rem 3.2rem;
    border-radius: 14px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-with-icon input:focus {
    outline: none;
    background: rgba(30, 41, 59, 0.8);
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.input-with-icon i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.input-with-icon input:focus+i {
    color: #10b981;
}

.input-with-icon .toggle-password {
    left: auto;
    right: 1.2rem;
    cursor: pointer;
}

/* Footer */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0 2.5rem;
    font-size: 0.95rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #94a3b8;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.remember-me input {
    width: 18px;
    height: 18px;
    accent-color: #10b981;
    cursor: pointer;
}

.forgot-password {
    color: #10b981;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.forgot-password:hover {
    opacity: 0.8;
}

.auth-submit-btn {
    width: 100%;
    padding: 1.1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -5px rgba(16, 185, 129, 0.4);
}

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

.auth-switch {
    text-align: center;
    color: #94a3b8;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.auth-switch a {
    color: #10b981;
    font-weight: 700;
    text-decoration: none;
    margin-left: 0.25rem;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Google */
.g_id_signin {
    margin-bottom: 1.5rem;
    height: 48px;
}

.auth-divider {
    text-align: center;
    color: var(--text-muted);
    margin: 1.5rem 0;
    font-size: 0.8rem;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    display: inline-block;
    width: 40%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

.auth-divider span {
    padding: 0 10px;
}

/* Responsive */
@media (max-width: 968px) {
    .auth-split-layout {
        grid-template-columns: 1fr;
    }

    .auth-left-panel {
        display: none;
    }

    .auth-right-panel {
        padding: 2rem 1rem;
    }

    .card-header h2 {
        font-size: 2rem;
    }

    .login-wrapper {
        max-width: 100%;
    }

    .role-tab {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
}


/* --- Google Mock Modal - Dark Theme --- */
.google-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.google-modal.show {
    opacity: 1;
    display: flex;
}

.google-modal-content {
    background: #202124;
    /* Google Dark Mode Background */
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    padding: 0;
    text-align: center;
    color: #e8eaed;
    position: relative;
    font-family: 'Roboto', arial, sans-serif;
    overflow: hidden;
}

.google-modal-header {
    padding: 24px 24px 0 24px;
    margin-bottom: 10px;
}

.google-logo-small {
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
}

.google-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 400;
    color: #e8eaed;
    line-height: 1.3333;
}

.google-modal-header p {
    font-size: 1rem;
    color: #e8eaed;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Account List */
.google-account-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
}

.google-account-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    cursor: pointer;
    background: transparent;
    border-bottom: 1px solid #3c4043;
    transition: background 0.1s;
}

.google-account-item:last-child {
    border-bottom: none;
}

.google-account-item:hover {
    background: #303134;
}

.google-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 16px;
    object-fit: cover;
}

.google-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.google-name {
    font-weight: 500;
    font-size: 0.875rem;
    color: #e8eaed;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.google-email {
    font-size: 0.75rem;
    color: #9aa0a6;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.google-status {
    font-size: 0.75rem;
    color: #e8eaed;
    margin-left: 12px;
    white-space: nowrap;
}

/* Footer / Another Account */
.google-other-account {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    cursor: pointer;
    border-top: 1px solid #3c4043;
    color: #e8eaed;
    font-weight: 500;
    font-size: 0.875rem;
}

.google-other-account:hover {
    background: #303134;
}

.google-other-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: #9aa0a6;
}

.google-modal-footer {
    padding: 16px 24px;
    display: flex;
    justify-content: flex-start;
    border-top: 1px solid transparent;
    /* Keeps spacing consistent if needed */
}

.google-close-btn {
    background: transparent;
    border: none;
    color: #8ab4f8;
    /* Google Link Blue */
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 8px 0;
    /* Minimal padding */
}

.google-close-btn:hover {
    text-decoration: underline;
}