/* ========================================
   Payroll System Login Page Styles
   ======================================== */

:root {
    --primary-color: #58281e;
    --primary-dark: #3d1b14;
    --primary-light: #7a3828;
    --secondary-color: #dee2e6;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ========================================
   LOGIN CONTAINER
   ======================================== */

.login-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 700px;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin: 20px;
}

/* ========================================
   LEFT SIDE - BRANDING
   ======================================== */

.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-branding {
    position: relative;
    z-index: 2;
}

.brand-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.brand-icon i {
    font-size: 40px;
    color: var(--white);
}

.brand-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 50px;
    line-height: 1.6;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(10px);
}

.feature-item i {
    font-size: 20px;
    color: #4ade80;
}

/* Decorative Circles */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: -30px;
}

/* ========================================
   RIGHT SIDE - LOGIN FORM
   ======================================== */

.login-right {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.login-form-wrapper {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.login-header {
    margin-bottom: 40px;
    text-align: center;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

/* ========================================
   FORM STYLES
   ======================================== */

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-label i {
    margin-right: 5px;
    color: var(--primary-color);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    z-index: 2;
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(88, 40, 30, 0.1);
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
    z-index: 2;
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* ========================================
   FORM OPTIONS
   ======================================== */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    border: 2px solid var(--secondary-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    user-select: none;
}

.forgot-password {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ========================================
   LOGIN BUTTON
   ======================================== */

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 40, 30, 0.3);
    margin-bottom: 25px;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 40, 30, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    border: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.alert i {
    margin-right: 10px;
    font-size: 18px;
}

.alert .btn-close {
    margin-left: auto;
    opacity: 0.5;
}

/* ========================================
   FOOTER
   ======================================== */

.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--secondary-color);
}

.footer-text {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ========================================
   SECURITY BADGE
   ======================================== */

.security-badge {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 16px;
    background-color: var(--light-bg);
    border-radius: 20px;
}

.security-badge i {
    color: var(--success-color);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .login-left {
        display: none;
    }
    
    .login-container {
        max-width: 500px;
    }
    
    .login-right {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .login-container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .login-right {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 26px;
    }
    
    .brand-title {
        font-size: 32px;
    }
    
    .security-badge {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 30px;
        justify-content: center;
    }
}

/* ========================================
   FLOATING LABEL EFFECT
   ======================================== */

.input-group.focused .input-icon {
    color: var(--primary-color);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form-wrapper {
    animation: fadeIn 0.5s ease;
}