/* ===== Auth Container ===== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    padding: 15px;
}

/* ===== Auth Card ===== */
.auth-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 500px;
    margin: 15px auto;
}

/* ===== Auth Header ===== */
.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-header h2 {
    color: #212529;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
}

.auth-header p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 0;
}

/* ===== Form Elements ===== */
.auth-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

.input-with-icon {
    position: relative;
    margin-bottom: 20px;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.input-with-icon .toggle-password {
    left: auto;
    right: 15px;
    cursor: pointer;
    z-index: 2;
}

.form-control {
    height: 48px;
    border-radius: 5px;
    border: 1px solid #ced4da;
    width: 100%;
    font-size: 16px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: 0;
}

/* ===== Buttons ===== */
.auth-button {
    width: 100%;
    padding: 12px;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-button:hover {
    background-color: #0b5ed7;
}

.auth-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.auth-button i {
    margin-right: 8px;
}

/* ===== Footer Links ===== */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #6c757d;
    font-size: 15px;
}

.auth-footer a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

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

.remember-me {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 8px;
}

.forgot-password {
    color: #0d6efd;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

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

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert i {
    margin-right: 8px;
}

/* ===== Password Strength ===== */
.password-strength {
    margin-top: 10px;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    margin-bottom: 5px;
}

.progress-bar {
    border-radius: 4px;
    transition: width 0.3s ease;
}

.bg-danger {
    background-color: #dc3545;
}
.bg-warning {
    background-color: #ffc107;
}
.bg-info {
    background-color: #0dcaf0;
}
.bg-primary {
    background-color: #0d6efd;
}
.bg-success {
    background-color: #198754;
}

.password-requirements {
    margin-top: 10px;
    font-size: 13px;
}

.password-requirements small {
    display: block;
    line-height: 1.5;
}

.text-danger {
    color: #dc3545;
}
.text-success {
    color: #198754;
}
.text-muted {
    color: #6c757d;
}

#password-match {
    font-size: 14px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .auth-card {
        padding: 25px;
    }

    .auth-header h2 {
        font-size: 24px;
    }

    .auth-header p {
        font-size: 15px;
    }

    .form-control {
        height: 45px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 20px;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    .auth-container {
        padding: 10px;
        align-items: flex-start;
        background-color: white;
    }

    .auth-header h2 {
        font-size: 22px;
    }

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

    .forgot-password {
        margin-top: 10px;
    }
}

/* ===== Terms Checkbox ===== */
.form-check {
    margin-bottom: 20px;
}

.form-check-label {
    font-size: 14px;
}

.form-check-label a {
    color: #0d6efd;
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* ===== Invalid Feedback ===== */
.invalid-feedback {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #dc3545;
}
