﻿/* ==================== Auth Container ==================== */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

/* ==================== Auth Card ==================== */
.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
    overflow: hidden;
}

.auth-card-large {
    max-width: 600px;
}

/* ==================== Auth Header ==================== */
.auth-header {
    background: #f8f9fa;
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.auth-header i {
    font-size: 32px;
    color: #007bff;
}

.auth-header h2 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

/* ==================== Auth Body ==================== */
.auth-body {
    padding: 30px;
}

/* ==================== Form Groups ==================== */
.form-group-custom {
    margin-bottom: 20px;
}

.form-row-custom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-label-custom {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* ==================== Input Group ==================== */
.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: #007bff;
    font-size: 16px;
    pointer-events: none;
}

.form-control-custom {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control-custom:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-control-custom[type="date"] {
    padding: 10px 15px 10px 40px;
}

/* ==================== Form Check ==================== */
.form-check-custom {
    display: flex;
    align-items: center;
}

.form-check-input-custom {
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
    cursor: pointer;
}

.form-check-label-custom {
    cursor: pointer;
    user-select: none;
    margin: 0;
    font-size: 14px;
    color: #333;
}

/* ==================== Submit Button ==================== */
.btn-submit {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ==================== Divider ==================== */
.auth-divider {
    text-align: center;
    margin: 25px 0;
    color: #999;
    font-size: 14px;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    z-index: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-divider::before {
    width: 100%;
}

/* ==================== Footer ==================== */
.auth-footer {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

.auth-footer p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.auth-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ==================== Alert ==================== */
.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
}

.text-danger {
    color: #dc3545;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

/* ==================== Responsive ==================== */
@media (max-width: 600px) {
    .auth-container {
        min-height: auto;
        padding: 20px 10px;
    }

    .auth-card {
        max-width: 100%;
    }

    .auth-card-large {
        max-width: 100%;
    }

    .auth-header {
        padding: 25px;
    }

    .auth-header h2 {
        font-size: 20px;
    }

    .auth-body {
        padding: 20px;
    }

    .form-row-custom {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-group-custom {
        margin-bottom: 15px;
    }
}
