/* public/css/login.css - CLEAN MOBILE-FIRST LOGIN */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.login-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.15);
    border: 1px solid #bae6fd;
}

/* Logo */
.login-logo {
    text-align: center;
    margin-bottom: 35px;
}

.logo-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.logo-circle svg {
    width: 32px;
    height: 32px;
    color: white;
}

.login-logo h1 {
    font-size: 28px;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 700;
}

.login-logo p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    display: block;
}

.input-wrapper {
    position: relative;
}

.input-wrapper svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #60a5fa;
    z-index: 1;
}

.login-input {
    width: 100%;
    padding: 16px 56px 16px 48px; /* Increased right padding from 16px to 56px */
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    color: #1e293b;
}

.login-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.login-input::placeholder {
    color: #94a3b8;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 8px;  /* Increased padding for better click area */
    border-radius: 6px;
    transition: color 0.2s;

    /*new*/
     display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Fixed width */
    height: 40px; /* Fixed height */
    z-index: 10; /* Ensure it's above other elements */
}

.password-toggle:hover {
    color: #3b82f6;
    background: #f1f5f9;
}

/* Forgot Password */
.forgot-link {
    text-align: right;
    margin-top: -5px;
}

.forgot-link a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.forgot-link a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Remember Me */
.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
    cursor: pointer;
}

.remember-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    position: relative;
    transition: all 0.2s;
}

.remember-checkbox:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.remember-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.remember-me label {
    color: #475569;
    font-size: 15px;
    cursor: pointer;
    user-select: none;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

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

/* Error Messages */
.error-message {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-message::before {
    content: '⚠';
    font-size: 14px;
}

/* Session Status */
.session-status {
    background: #dbeafe;
    border: 2px solid #93c5fd;
    color: #1e40af;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* Support Link */
.support-link {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9;
}

.support-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.support-link a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Form Footer */
.form-footer {
    margin-top: 30px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 480px) {
    .login-page {
        padding: 15px;
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    }

    .login-card {
        padding: 30px 20px;
        border-radius: 16px;
        box-shadow: 0 8px 25px rgba(14, 165, 233, 0.15);
    }

    .logo-circle {
        width: 60px;
        height: 60px;
        border-radius: 14px;
        margin-bottom: 18px;
    }

    .logo-circle svg {
        width: 28px;
        height: 28px;
    }

    .login-logo h1 {
        font-size: 24px;
    }

    .login-logo p {
        font-size: 14px;
    }

    .login-input {
        padding: 15px 15px 15px 45px;
        font-size: 16px;
        border-width: 1.5px;
    }

    .submit-btn {
        padding: 16px;
        font-size: 16px;
    }

    .login-form {
        gap: 20px;
    }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
    .login-container {
        max-width: 400px;
    }

    .login-card {
        padding: 35px 30px;
    }
}

/* Focus styles for accessibility */
.login-input:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.submit-btn:focus-visible {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* Animation for login card */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeIn 0.5s ease-out;
}
