/**
 * Custom Login Page Styles
 * Author: OS 26-Aug-2025
 * Elegant, minimal, monochromatic design matching Walk the Dragon aesthetics
 * Updated: OS 26-Aug-2025 - Added animations, improved input styling, removed welcome section
 */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body.custom-login-page {
    margin: 0;
    padding: 0;
    background: linear-gradient(120deg, #fdfbfb 0%, #f0ece8 40%, #e8ddd4 100%);
    background-size: 200% 200%;
    animation: gentleShift 15s ease infinite;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #3A3532;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

@keyframes gentleShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body.custom-login-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.4) 0%, transparent 40%),
        radial-gradient(ellipse at bottom right, rgba(216, 207, 196, 0.3) 0%, transparent 40%);
    pointer-events: none;
    opacity: 0.8;
    animation: pulseGlow 10s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
}



/* Main Container */
.login-container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Login Content */
.login-content {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}

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

.login-logo a {
    display: inline-block;
}

.login-logo img {
    height: 40px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.login-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Form Styles */
.login-form {
    background: #ffffff;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
    position: relative;
    transition: all 0.3s ease;
}

.form-group.focused label {
    color: #000000;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #3A3532;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border: 1px solid #e0d5cc;
    border-radius: 8px;
    background-color: #ffffff;
    color: #3A3532;
    transition: all 0.3s ease;
    font-weight: 300;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-group input:hover {
    border-color: #d0c5bc;
}

.form-group input:focus {
    outline: none;
    border-color: #8E8C8A;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(142, 140, 138, 0.1);
}

.form-group input::placeholder {
    color: #BBB8B6;
    font-weight: 300;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3A3532;
}

.remember-me label {
    font-size: 14px;
    color: #8E8C8A;
    cursor: pointer;
    font-weight: 300;
}

.forgot-password {
    font-size: 14px;
    color: #8E8C8A;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #3A3532;
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 16px;
    background-color: #000000;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-button:hover {
    background-color: #3A3532;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Error and Success Messages */
.login-error,
.login-success {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 300;
}

.login-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.login-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Additional Links */
.login-links {
    text-align: center;
    margin-top: 32px;
}

.login-links p {
    font-size: 14px;
    color: #8E8C8A;
    margin: 0 0 16px 0;
    font-weight: 300;
}

.login-links a {
    color: #3A3532;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: #000000;
}

.back-to-home {
    display: inline-block;
    font-size: 14px;
    color: #8E8C8A !important;
    font-weight: 300 !important;
}

.back-to-home:hover {
    color: #3A3532 !important;
}

/* Decorative Element - Hidden for centered layout */
.login-decoration {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 20px;
    }
    
    .login-form {
        padding: 32px 24px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}
