:root {
    --primary-color: #4a9fff;
    --secondary-color: #1a73e8;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: rgba(255, 255, 255, 0.9);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

.login-section {
    min-height: 100vh;
    /* background: url('/images/login-bg.jpg?v=1') center/cover no-repeat; */
    background: url('/login-bg-cache') center center / cover no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

/* Mobile view (up to 767px) */
@media (max-width: 767px) {
    .login-section {
        /* background: url('/images/login-bg_11zon_11zon.jpg') center center / cover no-repeat; */
        background: url('/login-bg-mb-cache') center center / cover no-repeat;
        background-attachment: scroll; /* Fixed can be buggy on mobile */
    }
}

/* Tablet / small desktop (768px to 1024px) */
@media (max-width: 1025px) {
    .login-section {
        /* background: url('/images/login-bg_11zon_11zon.jpg') center center / cover no-repeat; */
        background: url('/login-bg-mb-cache') center center / cover no-repeat;
        background-attachment: scroll;
    }
}

.container {
    margin-top: 2.5rem;
    position: relative;
    z-index: 2;
}

.logo-canopy {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Login Card Styles */
.login-card {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    max-width: 450px;
    margin: 0 auto;
}

.login-card-header {
    text-align: center;
    margin-bottom: 1rem;
}

.lock-icon {
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
}

.lock-icon i {
    font-size: 24px;
    color: var(--text-light);
}

.login-card-header h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-card-header p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgb(0, 0, 0);
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgb(118, 118, 118);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(74, 159, 255, 0.2);
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgb(179, 179, 179);
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: rgb(0, 0, 0);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    gap: 2rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    color: var(--text-light);
    cursor: pointer;
    margin: 0;
}

.checkbox-container input {
    margin-right: 0.5rem;
    accent-color: var(--primary-color);
}

.forgot-password {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #040404;
    text-decoration: underline;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 1rem;
}

.btn {
    flex: 1;
    padding: 0.575rem 1rem !important;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem !important;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: none !important;
    width: auto;
    height: auto;
    min-width: auto;
    min-height: auto;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.88);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 159, 255, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(74, 159, 255, 0.4);
}

.btn-dark {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-dark:hover {
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Button focus and active states */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 159, 255, 0.5);
}

.btn:active {
    transform: none;
    transition: all 0.1s ease;
}

.btn-dark:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.btn-dark:active {
    background: rgba(0, 0, 0, 1);
    transform: none;
}

/* logo-bottom */
.logo-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}


/* Error Messages */
.error-messages {
    background: rgba(220, 53, 69, 0.9);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.error-messages ul {
    margin: 0;
    padding-left: 1rem;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .logo-canopy {
        max-width: 300px !important;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem 1rem;
    }
    
    .login-card-header h2 {
        font-size: 1.25rem;
    }
    
    .logo-canopy {
        max-width: 250px !important;
    }
}
