/**
 * Login Page Styles
 * Fixed to match the 1st picture:
 * - wider card
 * - softer inputs (light gray background + softer border)
 * - normal "Login" (not uppercase)
 * - demo credentials as simple text (no top border)
 * - button color uses var(--color-amber-600) as you requested
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    /* keep your palette, but add the amber token you asked for */
    --color-amber-600: #C27C00;
    --color-primary: var(--color-amber-600);
    --color-primary-dark: #B66F00;
    --color-text-dark: #1F2937;
    --color-text-light: #6B7280;
    --color-border: #EAECEF; /* softer border like the 1st pic */
    --color-background: #F9FAFB;
    --color-white: #FFFFFF;
    --color-dark: #1E293B;
    --color-input-bg: #F8FAFC; /* soft gray input background */

    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.125rem; /* a bit rounder */

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 14px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 10px 22px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 18px 45px rgba(0, 0, 0, 0.18);
    --transition: all 0.25s ease;
}

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

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-dark);
    line-height: 1.6;
}

body {
    display: flex;
    flex-direction: column;
}

/* Login Container */
.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.35) 100%), url("https://s3.bareeq.com.bh/media-public/2024-01/1920x733_Inner_TS_0030_AboutUs.jpg") center/cover ;
    background-attachment: fixed;
    padding: 24px;
    /* IMPORTANT: remove the weird calc that was making it short */
    min-height: 100vh;
}

/* Login Card */
.login-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: 36px 40px;
    width: 100%;
    max-width: 520px; /* match 1st picture width */
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

/* Title */
.login-title {
    font-size: 1.55rem; /* smaller like 1st picture */
    font-weight: 650;
    text-align: center;
    color: var(--color-text-dark);
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 26px; /* less than before */
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

/* Inputs */
.form-input {
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    color: var(--color-text-dark);
    background-color: var(--color-input-bg);
    transition: var(--transition);
}

    .form-input::placeholder {
        color: #9CA3AF;
    }

    .form-input:focus {
        outline: none;
        border-color: rgba(17, 24, 39, 0.18);
        box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
    }

/* Login Button */
.login-button {
    margin-top: 8px;
    height: 46px;
    background-color: var(--color-amber-600); /* as requested */
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    /* FIX: first picture is "Login" not uppercase */
    text-transform: none;
    letter-spacing: 0;
}

    .login-button:hover {
        background-color: var(--color-primary-dark);
        box-shadow: var(--shadow-lg);
        transform: translateY(-1px);
    }

    .login-button:active {
        transform: translateY(0);
    }

    .login-button:disabled {
        background-color: var(--color-text-light);
        cursor: not-allowed;
        opacity: 0.6;
    }

/* Demo Credentials */
.demo-credentials {
    margin-top: 18px;
    /* FIX: remove the divider line + padding that made it look like a section */
    padding-top: 0;
    border-top: none;
    text-align: center;
}

    .demo-credentials p {
        font-size: 0.9rem; /* match 1st picture */
        color: var(--color-text-light);
    }

/* Footer (kept as-is, not part of the card screenshot) */
.login-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: var(--spacing-2xl) var(--spacing-xl);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

    .footer-list li {
        display: flex;
        align-items: flex-start;
        gap: var(--spacing-sm);
        font-size: 0.875rem;
    }

.footer-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

    .footer-list a:hover {
        color: var(--color-primary);
    }

.footer-follow-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
}

    .social-link:hover {
        background-color: var(--color-primary);
        transform: translateY(-2px);
    }

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-copyright,
.footer-credit {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 16px;
        min-height: 100vh;
    }

    .login-card {
        padding: 28px 22px;
        max-width: 92vw;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 22px 18px;
    }

    .login-title {
        font-size: 1.25rem;
    }
}
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    max-width: 400px;
    word-wrap: break-word;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

    .toast.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

/* Toast Success */
.toast-success {
    background-color: #10B981;
    color: var(--color-white);
    border-left: 4px solid #059669;
}

    .toast-success.show {
        animation: slideInToast 0.3s ease forwards;
    }

/* Toast Error */
.toast-error {
    background-color: #EF4444;
    color: var(--color-white);
    border-left: 4px solid #DC2626;
}

    .toast-error.show {
        animation: slideInToast 0.3s ease forwards;
    }

/* Toast Warning */
.toast-warning {
    background-color: #F59E0B;
    color: var(--color-white);
    border-left: 4px solid #D97706;
}

    .toast-warning.show {
        animation: slideInToast 0.3s ease forwards;
    }

/* Toast Info */
.toast-info {
    background-color: #3B82F6;
    color: var(--color-white);
    border-left: 4px solid #1D4ED8;
}

    .toast-info.show {
        animation: slideInToast 0.3s ease forwards;
    }

@keyframes slideInToast {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutToast {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

@media (max-width: 480px) {
    .toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
}