/* ============================================
   LM EVENTS - CUSTOMER LOGIN
   Location: assets/css/main/login.css
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 35px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    position: relative;
}

.login-card:hover { transform: translateY(-5px); }

.btn-return {
    display: inline-flex;
    align-items: center;
    color: #0f3460;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    background: rgba(15, 52, 96, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
}

.btn-return:hover {
    background: rgba(15, 52, 96, 0.15);
    color: #0a1f3a;
    transform: translateX(-3px);
}

.logo-container { text-align: center; margin-bottom: 25px; }

.logo-container img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0f3460;
    padding: 5px;
    background: #fff;
}

.logo-container h3 {
    color: #0f3460;
    font-weight: 700;
    margin-top: 10px;
    font-size: 22px;
}

.logo-container p { color: #6c757d; font-size: 14px; margin-bottom: 0; }

.form-label { color: #333; font-weight: 600; font-size: 14px; }

.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.15);
}

.form-check-label { font-size: 14px; color: #555; }

.btn-login {
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    transform: scale(1.02);
    color: #fff;
}

.btn-login:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.forgot-link { color: #0f3460; font-size: 14px; text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }

.register-text { color: #555; font-size: 14px; }
.register-link { color: #0f3460; font-weight: 600; text-decoration: none; }
.register-link:hover { text-decoration: underline; }

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider span { padding: 0 15px; color: #999; font-size: 13px; }

.alert { border-radius: 10px; font-size: 14px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.login-footer { text-align: center; margin-top: 15px; font-size: 13px; color: #888; }
.login-footer a { color: #0f3460; text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }

.form-check-input:checked { background-color: #0f3460; border-color: #0f3460; }

@media (max-width: 480px) {
    .login-card { padding: 30px 20px; }
    .logo-container h3 { font-size: 19px; }
    .logo-container p { font-size: 13px; }
    .btn-return { font-size: 13px; padding: 5px 12px; }
}
/* ============================================
   INPUT ICON WRAPPER (for login page)
   ============================================ */
.input-icon-wrapper {
    position: relative;
    display: block;
}

.input-icon-wrapper .input-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 2;
}

.input-icon-wrapper .input-with-icon {
    padding-left: 42px;
    padding-right: 15px;
}

.input-icon-wrapper .input-with-toggle {
    padding-right: 45px;
}

.input-icon-wrapper:focus-within .input-icon-left {
    color: #0f3460;
}

/* ============================================
   PASSWORD TOGGLE BUTTON
   ============================================ */
.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #999;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 3;
}

.password-toggle:hover {
    color: #0f3460;
    background: rgba(15, 52, 96, 0.08);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.password-toggle:focus {
    outline: 2px solid #f39c12;
    outline-offset: 2px;
}

.password-toggle i {
    pointer-events: none;
}

/* Slightly wider input for icon padding on small screens */
@media (max-width: 480px) {
    .input-icon-wrapper .input-with-icon {
        padding-left: 38px;
        font-size: 14px;
    }
    .input-icon-wrapper .input-icon-left {
        left: 12px;
        font-size: 13px;
    }
    .password-toggle {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}