﻿.auth-container {
    min-height: 100vh;
    background: #ffffff;
    background-image: 
        linear-gradient(to right, #f8f9fa 1px, transparent 1px),
        linear-gradient(to bottom, #f8f9fa 1px, transparent 1px);
    background-size: 40px 40px;
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.95) 100%);
    backdrop-filter: blur(10px);
}

.auth-container .container-fluid {
    position: relative;
    z-index: 1;
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

    .auth-icon i {
        font-size: 2rem;
        color: #495057;
    }

.auth-card {
    background: #ffffff;
    backdrop-filter: blur(20px);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .auth-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    }

    .auth-card .card-header {
        background: #ffffff;
        border-bottom: 1px solid #e9ecef;
        padding: 2rem 2rem 1rem;
    }

    .auth-card .card-body {
        padding: 1rem 2rem 2rem;
    }

.form-group {
    position: relative;
}

.form-label {
    color: #495057;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

    .form-label i {
        color: #6c757d;
    }

.input-wrapper {
    position: relative;
}

.form-control {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.875rem 1.125rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #212529;
}

    .form-control:focus {
        border-color: #495057;
        box-shadow: 0 0 0 3px rgba(73, 80, 87, 0.1);
        background: #ffffff;
        outline: 0;
    }

    .form-control.is-invalid {
        border-color: #dc3545;
    }

    .form-control::placeholder {
        color: #adb5bd;
    }

.form-check {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}

    .form-check:hover {
        background: #ffffff;
        border-color: #dee2e6;
    }

.form-check-input:checked {
    background-color: #495057;
    border-color: #495057;
}

.form-check-input:focus {
    border-color: #495057;
    box-shadow: 0 0 0 2px rgba(73, 80, 87, 0.2);
}

.form-check-label {
    color: #495057;
    margin-left: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.invalid-feedback,
.text-danger {
    color: #dc3545 !important;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.btn-primary {
    background: #212529;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(33, 37, 41, 0.2);
    color: #ffffff;
}

    .btn-primary:hover {
        background: #343a40;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(33, 37, 41, 0.3);
    }

    .btn-primary:active {
        background: #495057;
        transform: translateY(0);
    }

.security-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e9ecef;
}

.security-badge {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .security-badge i {
        color: #495057;
        font-size: 1.1rem;
    }

.alert {
    border-radius: 8px;
    border: 1px solid;
    padding: 1rem 1.25rem;
}

.alert-danger {
    background: #fff5f5;
    color: #c82333;
    border-color: #f8d7da;
}

.text-primary {
    color: #495057 !important;
}

.display-5 {
    color: #212529;
    text-shadow: none;
}

.lead {
    color: #6c757d;
}

/* Link styling */
a.text-primary:hover {
    color: #212529 !important;
    text-decoration: underline;
}

a.text-muted {
    color: #6c757d !important;
}

a.text-muted:hover {
    color: #495057 !important;
    text-decoration: underline;
}

/* Header titles */
.auth-card .card-header h2,
.auth-card .card-header h3 {
    color: #212529;
}

/* Text colors for better readability on white */
.text-dark {
    color: #212529 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

/* Border utilities */
.border-top {
    border-top: 1px solid #e9ecef !important;
}

/* Security info enhancements */
.security-info h6 {
    color: #212529;
    margin-bottom: 0.25rem;
}

.security-info small {
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-card .card-header,
    .auth-card .card-body {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .auth-icon {
        width: 60px;
        height: 60px;
    }

        .auth-icon i {
            font-size: 1.5rem;
        }
}

