/* Login Page Styles - Black and White Theme */

:root {
    --background-color: #ffffff;
    --default-color: #333333;
    --heading-color: #000000;
    --accent-color: #000000;
    --surface-color: #ffffff;
    --contrast-color: #ffffff;
    --border-color: #e0e0e0;
    --hover-color: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--default-color);
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.auth-container {
    background: var(--surface-color);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #000000 0%, #404040 100%);
}

.brand-logo {
    text-align: center;
    margin-bottom: 30px;
}

.brand-logo .logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    display: inline-block;
}

.brand-logo h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 8px;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-logo p {
    font-size: 14px;
    color: #666666;
    margin: 0;
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.form-header p {
    color: #666666;
    font-size: 14px;
    margin: 0;
}

.input-group {
    position: relative;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

    .input-group .input-icon {
        position: absolute;
        left: 18px;
        top: 35%;
        transform: translateY(-50%);
        z-index: 10;
        color: #999999;
        font-size: 16px;
        transition: color 0.3s ease;
        pointer-events: none;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

.input-group .form-control {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--surface-color);
    color: var(--default-color);
    line-height: 1.5;
    height: 52px;
}

.input-group .form-control:focus {
    border-color: #000000;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
    outline: none;
}

.input-group .form-control:focus ~ .input-icon {
    color: #000000;
}

.input-group .form-control::placeholder {
    color: #999999;
}

.error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    margin-bottom: 15px;
    display: block;
    width: 100%;
    text-align: left;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    margin-bottom: 15px;
    display: block;
    width: 100%;
    text-align: left;
}

.field-validation-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    margin-bottom: 15px;
    display: block;
    width: 100%;
    text-align: left;
}

.auth-btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #000000 0%, #2c2c2c 100%);
    color: var(--contrast-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #1a1a1a 0%, #404040 100%);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn i {
    font-size: 16px;
}

.footer-text {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
    color: #666666;
    font-size: 13px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-container {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 576px) {
    .auth-container {
        padding: 40px 30px;
    }

    .brand-logo .logo-image {
        width: 70px;
        height: 70px;
    }

    .brand-logo h1 {
        font-size: 28px;
    }

    .form-header h2 {
        font-size: 22px;
    }
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
