
:root {
    --primary-blue: #1a1a2e;
    --primary-blue-dark: #12121f;
    --accent-red: #c0392b;
    --accent-red-dark: #922b21;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --white: #ffffff;
    --error-red: #dc2626;
    --success-green: #059669;
    --border-radius: 12px;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    /* Legacy aliases kept for any page still referencing the old names */
    --primary-color: #1a1a2e;
    --primary-hover: #12121f;
    --accent-color: #c0392b;
    --success: #28a745;
    --danger: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: white;
    position: relative;
    color: var(--text-dark);
}

.login-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* ============ Two-pane split layout (Login page) ============ */
.login-wrapper {
    display: flex;
    max-width: 1200px;
    width: 100%;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-brand {
    flex: 1;
    background: var(--primary-blue);
    padding: 3rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-header {
    margin-bottom: 3rem;
}

.logo {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.brand-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.brand-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    border: 2px solid var(--white);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

    .feature-icon::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 8px;
        height: 8px;
        background: var(--white);
        border-radius: 50%;
    }

.feature span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

.login-form-section {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
}

.form-header {
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 400;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
    color: var(--error-red);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .error-message::before {
        content: '\f071';
        font-family: 'bootstrap-icons';
        font-size: 1.1rem;
    }

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
    background: var(--white);
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.1);
    }

    .form-control::placeholder {
        color: var(--text-light);
    }

.field-validation-error {
    color: var(--error-red);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.btn-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--accent-red);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

    .btn-primary:hover {
        background: var(--primary-blue-dark);
        color: var(--white);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(26, 26, 46, 0.3);
    }

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

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.form-footer-link {
    color: var(--text-gray);
    font-size: 0.9rem;
}

    .form-footer-link a {
        color: var(--primary-blue);
        text-decoration: none;
        font-weight: 600;
    }

        .form-footer-link a:hover {
            text-decoration: underline;
        }

/* ============ Single-card layout (Reset / Forgot Password) ============ */
.login-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: var(--white);
    width: 100%;
    max-width: 450px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

    .login-card:hover {
        transform: translateY(-5px);
    }

.card-header {
    background-color: var(--white);
    padding: 30px 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-container {
    margin-bottom: 15px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    background-color: var(--white);
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-img {
    max-width: 100%;
    height: auto;
}

.login-title {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.login-subtitle {
    color: var(--text-gray);
    font-size: 0.85rem;
    font-weight: 500;
}

.card-body {
    padding: 30px;
}

.btn-success {
    background-color: var(--accent-red);
    border: none;
    border-radius: 30px;
    padding: 12px 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    color: var(--white);
}

    .btn-success:hover {
        background-color: var(--primary-blue);
        transform: translateY(-2px);
        color: var(--white);
    }

.forgot-password {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

    .forgot-password:hover {
        color: var(--accent-red-dark);
        text-decoration: underline;
    }

.create-account {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

    .create-account:hover {
        color: var(--accent-red-dark);
        text-decoration: underline;
    }

.alert {
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 20px;
    font-weight: 500;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: var(--danger);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: var(--success);
}

.footer-text {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 30px;
}

.footer-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

    .footer-link:hover {
        color: var(--accent-red-dark);
    }

.modal-content {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.modal-header {
    background-color: var(--primary-blue);
    color: var(--white);
    border-top-left-radius: calc(var(--border-radius) - 1px);
    border-top-right-radius: calc(var(--border-radius) - 1px);
}

.modal-body {
    padding: 25px;
}

.modal-title {
    font-weight: 600;
}

.close {
    color: var(--white);
    opacity: 1;
}

.input-icon-container {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
    color: var(--text-light);
}

.icon-input {
    padding-left: 45px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-brand {
        padding: 2.5rem 2rem;
    }

    .brand-title {
        font-size: 1.875rem;
    }

    .login-form-section {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 1rem;
    }

    .login-brand {
        padding: 2rem 1.5rem;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .brand-title {
        font-size: 1.5rem;
    }

    .brand-subtitle {
        font-size: 0.9rem;
    }

    .login-form-section {
        padding: 2rem 1.5rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .brand-features {
        gap: 1rem;
    }

    .feature span {
        font-size: 0.875rem;
    }
}
