/* AEM Labs Limited - Admin Dashboard - Authentication Page Styles */
/* =============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap');

:root {
    --accent-color: #a71c1c;
    --accent-hover: #8a1818;
    --bg-primary: #f8f8f8;
    --bg-white: #ffffff;
    --text-secondary: #666666;
    --text-muted: #999999;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #eef0f2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333333;
}

::selection {
    background-color: var(--accent-color);
    color: #fff;
}

/* Main Authentication Container */
.auth-container {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    max-width: 450px;
    width: 100%;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Section */
.auth-header {
    text-align: center;
    padding: 40px 40px 30px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #c41e3a 100%);
    color: white;
    position: relative;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.logo-container {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
}

.auth-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.auth-logo:hover {
    transform: scale(1.05);
}

.auth-title {
    position: relative;
    z-index: 1;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    position: relative;
    z-index: 1;
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
}

/* Form Container */
.auth-form-container {
    padding: 40px 40px 30px;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 25px;
}

.flash-message {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.flash-message i {
    font-size: 16px;
}

.flash-error {
    background: #fee2e2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

.flash-success {
    background: #dcfce7;
    color: #16a34a;
    border-left: 4px solid #16a34a;
}

.flash-warning {
    background: #fef3c7;
    color: #d97706;
    border-left: 4px solid #d97706;
}

.flash-info {
    background: #dbeafe;
    color: #2563eb;
    border-left: 4px solid #2563eb;
}

/* Form Section */
.form-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.form-section-label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    position: relative;
    z-index: 10;
}

.form-section-label::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    transform: translateX(0%);
    width: 80%;
    height: 6px;
    background: linear-gradient(270deg, #a71c1c, #6907c5);
    opacity: 0.4;
    box-shadow: 0 0 10px rgba(0, 0, 0, 1);
    border-radius: 3px;
    z-index: -1;
}

.help-icon {
    color: #666;
    cursor: help;
    transition: all 0.3s ease;
    font-size: 12px;
}

.help-icon:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 13px;
    font-family: inherit;
    background: var(--bg-white);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(167, 28, 28, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Password Input Container */
.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: var(--accent-color);
}

.password-toggle:focus {
    outline: none;
    color: var(--accent-color);
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    background: linear-gradient(270deg, #a71c1c, #6907c5, #a71c1c, #6907c5);
    background-size: 300% 100%;
    background-position: 0% 0%;
    color: white;
    border: none;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-submit-btn:hover {
    background-position: 100% 0%;
    transform: translateY(-2px);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-spinner {
    margin-left: 8px;
}

/* Footer */
.auth-footer {
    padding: 25px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.security-info i {
    color: #16a34a;
}

.footer-links {
    margin-bottom: 12px;
}

.website-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--accent-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(167, 28, 28, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.website-link:hover {
    background: rgba(167, 28, 28, 0.2);
    transform: translateY(-1px);
    color: var(--accent-hover);
    text-decoration: none;
}

.website-link i {
    font-size: 12px;
}

.copyright {
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .auth-container {
        max-width: 100%;
    }
    
    .auth-header,
    .auth-form-container,
    .auth-footer {
        padding-left: 25px;
        padding-right: 25px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .auth-subtitle {
        font-size: 14px;
    }
    
    .form-input {
        padding: 10px 14px;
    }
    
    .auth-submit-btn {
        padding: 12px 20px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-muted: #666666;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 