/* 
 * custom-login.css 
 * Premium login styles for Aljania WordPress 
 * Ported from norhcom design 
 */

:root {
    --login-primary: #1d4ed8;
    --login-dark: #0f172a; /* Darker slate */
    --login-text: #0f172a; /* Solid dark */
    --login-text-muted: #334155; /* Dark gray */
    --card-radius: 16px;
}

body.login {
    margin: 0;
    font-family: 'Inter', sans-serif !important;
    background-color: #ffffff !important;
}

/* --- WRAPPERS --- */
.main-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.form-column {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    z-index: 10;
    box-shadow: 20px 0 50px rgba(0,0,0,0.02);
    background: #fff;
}

/* Hide default WP background */
body.login {
    background: #fff !important;
}

/* Match WP Login Box to card styles */
#login {
    width: 100% !important;
    max-width: 440px !important;
    padding: 20px !important;
    margin: 0 !important;
}

.login h1 {
    display: block;
    margin-bottom: 2rem !important;
}

.login h1 a {
    width: 280px !important;
    height: 120px !important;
    background-image: url('http://localhost/aljania/wp-content/uploads/2025/10/logoparaweb.png') !important;
    background-size: contain !important;
    background-position: center !important;
    margin: 0 auto !important;
    filter: none !important; /* Remove shadow to keep it clean */
}

#loginform {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important; /* Slightly more visible border */
    border-radius: var(--card-radius) !important;
    padding: 2.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: none !important; 
    opacity: 1 !important; /* Ensure solid visibility */
}

.login label {
    font-weight: 700 !important; /* Bolder */
    color: var(--login-dark) !important;
    margin-bottom: 0.6rem !important;
    font-size: 0.9rem !important;
    display: block;
}

.login .input, .login input[type="text"], .login input[type="password"] {
    border-radius: 10px !important;
    padding: 0.8rem 1rem !important;
    border: 1.5px solid #cbd5e1 !important; /* Darker border */
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    width: 100% !important;
    background: #f8fafc !important; /* Light background for inputs */
    color: var(--login-dark) !important;
}

.login .input:focus {
    border-color: var(--login-primary) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
}

.login .button-primary {
    background: var(--login-primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 0.8rem !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    width: 100% !important;
    height: auto !important;
    margin-top: 1rem !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4) !important;
    text-shadow: none !important;
}

.login .button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.5) !important;
    background: #1d4ed8 !important;
}

.login #nav, .login #backtoblog {
    text-align: center !important;
    padding: 0 !important;
    margin-top: 1.5rem !important;
}

.login #nav a, .login #backtoblog a {
    color: var(--login-primary) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

/* --- LANGUAGE SWITCHER --- */
.language-switcher {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 100;
}

.language-switcher form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-switcher select {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 4px 8px !important;
    font-size: 0.85rem !important;
    color: var(--login-text-muted) !important;
}

/* --- HERO SECTION --- */
.hero-column {
    flex: 1.2;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 4rem;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.05em;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    line-height: 1.6;
    font-weight: 500;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .hero-column { display: none; }
    .form-column { max-width: 100%; }
    body.login { overflow: auto; }
}

/* Animation helpers */
.hero-content {
    animation: fadeIn 1s ease-out;
}

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