/**
 * Login & Authentication Stylesheet
 * Pakistan-based Inventory & Accounting System
 */

/* ========================================
   Reset & Base Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ========================================
   Login Container
   ======================================== */

.login-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Login Box
   ======================================== */

.login-box {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.logo svg {
    filter: drop-shadow(0 4px 8px rgba(44, 62, 80, 0.3));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.login-header h2 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.company-name {
    color: #2C3E50;
    font-size: 32px;
    font-weight: 700;
    font-style: italic;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   Form Styles
   ======================================== */

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

.form-group label svg {
    stroke-width: 2;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.form-control::placeholder {
    color: #95a5a6;
}

.text-danger {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.form-text {
    color: #7f8c8d;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* ========================================
   Remember Me Checkbox
   ======================================== */

.remember-me {
    margin-bottom: 30px;
}

.remember-me label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
    color: #5a6c7d;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3498db;
}

/* ========================================
   Buttons
   ======================================== */

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login svg {
    stroke-width: 2.5;
}

/* ========================================
   Alerts
   ======================================== */

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background-color: #fee;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ========================================
   Login Footer
   ======================================== */

.login-footer {
    margin-top: 40px;
    text-align: center;
}

.default-credentials {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #856404;
}

.default-credentials strong {
    display: block;
    margin-bottom: 8px;
    color: #856404;
}

.default-credentials code {
    background-color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e74c3c;
    font-weight: 600;
}

.copyright {
    color: #95a5a6;
    font-size: 12px;
    margin-top: 15px;
}

/* ========================================
   Features Panel
   ======================================== */

.features-panel {
    flex: 0 0 450px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.features-panel h3 {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 700;
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
    animation: fadeInRight 0.5s ease-out;
    animation-fill-mode: both;
}

.features-list li:nth-child(1) { animation-delay: 0.1s; }
.features-list li:nth-child(2) { animation-delay: 0.2s; }
.features-list li:nth-child(3) { animation-delay: 0.3s; }
.features-list li:nth-child(4) { animation-delay: 0.4s; }
.features-list li:nth-child(5) { animation-delay: 0.5s; }
.features-list li:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.features-list li svg {
    flex-shrink: 0;
    stroke-width: 3;
    margin-top: 2px;
}

/* ========================================
   Change Password Page Styles
   ======================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.page-header h2 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.card-body {
    padding: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.required {
    color: #e74c3c;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 992px) {
    .features-panel {
        display: none;
    }
    
    .login-container {
        max-width: 500px;
    }
}

@media (max-width: 576px) {
    .login-box {
        padding: 40px 30px;
    }
    
    .login-header h2 {
        font-size: 24px;
    }
    
    .company-name {
        font-size: 26px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .features-panel {
        padding: 40px 30px;
    }
    
    .features-panel h3 {
        font-size: 22px;
    }
}

/* ========================================
   Loading State
   ======================================== */

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-login.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    margin-left: 10px;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
