/* css/login-modern.css */

body.login-page {
    /* 1. Solid Fallback Color (in case image fails) */
    background-color: #cfdef3;
    
    /* 2. Background Image - USING ABSOLUTE PATH */
    background-image: url('/img/background-login.jpg'); 
    
    /* 3. Positioning & Sizing */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    
    /* Layout */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Logo Styling --- */
#imgLogo {
    max-width: 520px !important;
    width: 90%; 
    height: auto;
    display: block;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.2)); 
    margin-bottom: 25px; 
}

/* --- The "Glass" Box Container --- */
.login-wrapper {
    position: relative;
    width: 90%;
    max-width: 450px;
    margin: 0 auto;
    overflow: hidden;
    
    /* DEFAULT HEIGHT (Compact for Login) */
    min-height: 420px; 
    
    /* SMOOTH RESIZE ANIMATION */
    transition: min-height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* GLASSMORPHISM */
    /*background: rgba(255, 255, 255, 0.35); */
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding-bottom: 20px;
}

/* --- EXPANDED STATE (For Update Form) --- */
.login-wrapper.expanded {
    min-height: 580px; 
}

/* --- Sliding Forms --- */
.form-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    background: transparent;
    padding: 30px 40px; 
    box-sizing: border-box;
}

.visible-form {
    transform: translateX(0);
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.hidden-left {
    transform: translateX(-110%);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.hidden-right {
    transform: translateX(110%);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* --- Inputs & Buttons --- */
input.modern-input {
    width: 100%;
    padding: 14px 15px;
    margin: 10px 0;
    display: inline-block;
    border: 1px solid #ccc;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
}

input.modern-input:focus {
    border-color: #0056b3;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

button.modern-btn {
    width: 100%;
    background-color: #0056b3;
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
    color: white;
    padding: 15px 20px;
    margin: 15px 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

button.modern-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

button.modern-btn:disabled {
    background: #cccccc;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* --- Complexity Requirements --- */
.complexity-list {
    background: rgba(255,255,255,0.5);
    border-radius: 6px;
    padding: 10px;
    margin: 10px 0;
}

.req-item {
    font-size: 13px;
    color: #555;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s;
    font-weight: 500;
}

.req-item.valid { color: #2e7d32; }
.req-item.valid::before { content: "✓ "; font-weight: bold;}
.req-item.invalid { color: #c62828; }
.req-item.invalid::before { content: "• "; }

/* --- Messages (Shared Base) --- */
.msg-box-base {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none; 
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Error Message */
.error-msg-box {
    background-color: rgba(248, 215, 218, 0.95);
    color: #721c24;
    border-left: 5px solid #dc3545;
}

/* Success Message */
.success-msg-box {
    background-color: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}