/* ==========================================================================
   RetinaGuard - Login Page Stylesheet
   ========================================================================== */

/* 1. Global Reset & Body Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

/* body {
    min-height: 100vh;
    width: 100%;
    /* Use the retina graphic background 
    background: url('../assets/login_bg.png') no-repeat center center fixed;
    background-size: cover;
    background-color: #030c11; /* Fallback dark color 
    color: #e0e6ed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
} */

body {
    min-height: 70vh;
    width: 100%;
    background-color: #030c11; /* Fallback dark background */
    color: #e0e6ed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative; /* Required for the pseudo-element to align */
}

/* 2. Create the Flipped Background Layer */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Set your background image here */
    background: url('../assets/login_bg.png') no-repeat center center fixed;
    background-size: cover;
    
    /* FLIP OPTIONS (Choose one or combine): */
    transform: scaleX(-1); /* Flips Horizontally (Left <-> Right) */
    /* transform: scaleY(-1); */ /* Flips Vertically (Top <-> Bottom) */
    /* transform: scale(-1, -1); */ /* Flips Both Horizontally & Vertically */
    
    z-index: -1; /* Keeps the background behind all your login UI content */
}

/* 2. Main Container Layout */
.login-container {
    width: 100%;
    max-width: 1280px;
    padding: 0.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

/* ==========================================================================
   Left Side: Branding & Info Section
   ========================================================================== */
.login-info {
    flex: 1;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* ভেতরের সব এলিমেন্টকে বামে সোজা লাইনে আনবে */
    justify-content: center;
}

.login-info .logo {
    margin-bottom: -35px;
    margin-left: -46px; /* লোগো ইমেজের ভেতরের গ্যাপ কাটানোর জন্য সামান্য বামে টানা হয়েছে */
}

.login-info .logo img {
    height: 172px;
    width: auto;
    display: block;
}

/* AI Badge */
.login-info .badge {
    display: inline-block;
    padding: 0.15rem 0.75rem;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: #00e676;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 4px;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

/* Heading */
.login-info h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1rem;
}

.login-info h1 span {
    color: #00e676;
}

/* Subtitle */
.login-info .subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 2.2rem;
}

/* Feature Bullet List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-item .icon {
    font-size: 1.2rem;
    background: rgba(15, 32, 39, 0.6);
    border: 1px solid rgba(0, 230, 118, 0.2);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.2rem;
}

.feature-item p {
    font-size: 0.85rem;
    color: #8292a2;
    line-height: 1.4;
}

/* Trust Footer Note */
.trust-footer {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   Right Side: Glassmorphism Login Card
   ========================================================================== */
.login-card-container {
    flex: 1;
    max-width: 440px;
    margin-top: 35px;
}

.login-card {
    background: rgba(6, 20, 27, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 230, 118, 0.18);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
                inset 0 0 15px rgba(0, 230, 118, 0.03);
    border-radius: 16px;
    padding: 1.25rem 2rem;
}

.login-card h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.login-card .card-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 2rem;
}

/* Form Controls */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.825rem;
    font-weight: 500;
    color: #00e676;
    margin-bottom: 0.5rem;
}

/* Input Wrappers & Fields */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    font-size: 0.95rem;
    color: #64748b;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 0.75rem 2.8rem 0.75rem 2.6rem;
    background: rgba(3, 14, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.25s ease;
}

.input-wrapper input::placeholder {
    color: #475569;
}

.input-wrapper input:focus {
    border-color: #00e676;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
    background: rgba(3, 14, 20, 0.95);
}

/* Emoji Toggle Styling */
#toggle-password {
    position: absolute;
    right: 14x;
    cursor: pointer;
    user-select: none;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

#toggle-password:hover {
    opacity: 1;
}

/* Forgot Password Link */
.forgot-password {
    text-align: right;
    margin-bottom: 1.5rem;
}

.forgot-password a {
    color: #00e676;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password a:hover {
    text-decoration: underline;
    color: #66ffa6;
}

/* Submit Button */
#login-submit-btn {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #0d5c46 0%, #00a859 100%);
    border: 1px solid rgba(0, 230, 118, 0.4);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.15);
}

#login-submit-btn:hover {
    background: linear-gradient(135deg, #00a859 0%, #00e676 100%);
    color: #030c11;
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.35);
    transform: translateY(-1px);
}

#login-submit-btn:active {
    transform: translateY(0);
}

#login-submit-btn span {
    font-size: 1.2rem;
    line-height: 1;
}

/* Encryption Note */
.encryption-note {
    margin-top: 1.8rem;
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 3rem;
    }

    .login-info, .login-card-container {
        max-width: 100%;
    }

    .login-info h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.8rem 1.25rem;
    }

    .login-info h1 {
        font-size: 1.8rem;
    }
}