/* ============================================
   MODERN LOGIN PAGE STYLES
   ============================================ */

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

/* Use CSS Variables from main styles.css */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern Login Container */
.login-container {
    background-image: url('https://wallpaperaccess.com/full/2684831.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dark Overlay for better contrast */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Modern Login Form Card */
.login-form {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Header */
.login-form::before {
    content: 'Welcome Back';
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
    text-align: center;
}

.login-form::after {
    content: 'Sign in to continue to your dashboard';
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 30px;
    text-align: center;
}

/* Form Fields */
.login-form div {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background-color: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.login-form input:hover {
    border-color: #d1d5db;
}

.login-form input:focus {
    outline: none;
    border-color: #06B6D4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

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

/* Modern Login Button */
.login-form button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    background: #06B6D4;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
    margin-top: 10px;
}

.login-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

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

/* ============================================
   MODERN MODAL STYLES
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modern Modal Content */
.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 32px;
    border: none;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Close Button */
.close-button {
    color: #9ca3af;
    float: right;
    font-size: 28px;
    font-weight: 300;
    line-height: 20px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-button:hover,
.close-button:focus {
    color: #ef4444;
    transform: rotate(90deg);
    transition: all 0.2s ease;
}

/* Modal Header */
.modal-header {
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
    color: #0F172A;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Modal Body Text */
.modal-content p {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
    margin: 16px 0;
}

/* Alert Message Styling */
#loginAlertText {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 16px;
    border-radius: 10px;
    border-left: 4px solid #ef4444;
    font-weight: 500;
}
