/* ========================================
   LOGIN PAGE STYLES - BLACK & WHITE THEME
   ======================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 480px;
    animation: slideUp 0.5s ease-out;
}

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

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #000000 0%, #333333 100%);
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #000000 0%, #2a2a2a 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo-container i {
    font-size: 36px;
    color: white;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 16px;
    color: #666666;
    margin: 0;
}

/* Form */
.login-form {
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.form-group label i {
    margin-right: 6px;
    color: #000000;
    width: 16px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #d0d0d0;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.form-control::placeholder {
    color: #b0b0b0;
}

/* Password Input */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.toggle-password:hover {
    background: #f5f5f5;
    color: #000000;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #000000;
}

.form-check-label {
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    user-select: none;
}

.forgot-link {
    font-size: 14px;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #333333;
    text-decoration: underline;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #000000 0%, #2a2a2a 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
}

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

/* Footer */
.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.login-footer p {
    font-size: 14px;
    color: #666666;
    margin: 0;
}

.login-footer a {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: #333333;
    text-decoration: underline;
}

/* Alerts */
.alert {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: none;
    font-size: 14px;
}

.alert-danger {
    background: #f5f5f5;
    color: #000000;
    border-left: 4px solid #666666;
}

.alert-success {
    background: #f9f9f9;
    color: #000000;
    border-left: 4px solid #2a2a2a;
}

.alert i {
    vertical-align: middle;
}

/* Demo Credentials */
.demo-credentials {
    margin-top: 25px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 12px;
    border: 2px dashed #d0d0d0;
}

.demo-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    text-align: center;
}

.demo-title i {
    color: #000000;
    margin-right: 6px;
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.demo-item {
    padding: 12px;
    background: white;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
    color: #333333;
    border: 1px solid #e8e8e8;
}

.demo-item strong {
    display: block;
    color: #000000;
    margin-bottom: 6px;
    font-size: 13px;
}

.demo-item small {
    color: #000000;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 576px) {
    .login-card {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .logo-container {
        width: 70px;
        height: 70px;
    }

    .logo-container i {
        font-size: 32px;
    }

    .demo-grid {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Loading State */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.7;
}

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

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

/* Focus Visible */
*:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.btn-close:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25);
}