/* =========================================
   Registration Page — Supplements login.css
   Only additions specific to registration form.
   ========================================= */

/* =========================================
   1. Wider Card for Registration
   ========================================= */
.register-card {
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 40px 35px;
    max-width: 680px;
    width: 100%;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* =========================================
   2. Form Grid Layout
   ========================================= */
.reg-row {
    display: grid;
    gap: 16px;
}

.reg-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.reg-row-2 {
    grid-template-columns: 1fr 1fr;
}

.reg-row-1 {
    grid-template-columns: 1fr;
}

/* =========================================
   3. Field Group (label above input)
   ========================================= */
.reg-field {
    display: flex;
    flex-direction: column;
}

.reg-field label {
    color: #E0E0E0;
    font-family: "Philosopher", sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* Reuse .form-control styles from login.css */
.register-card .form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
    color: #E0E0E0 !important;
    font-size: 14px;
    height: 44px;
    padding: 8px 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.register-card .form-control:focus {
    border-color: #D4AF37 !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.2) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    outline: none !important;
}

.register-card .form-control::placeholder {
    color: #888;
}

/* =========================================
   4. Gender Radio Buttons
   ========================================= */
.reg-gender-group {
    display: flex;
    align-items: center;
    height: 44px;
    gap: 20px;
}

.reg-gender-group label.reg-gender-label {
    color: #E0E0E0;
    font-family: "Philosopher", sans-serif;
    font-size: 13px;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

.reg-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.reg-radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #555;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.reg-radio input[type="radio"]:checked {
    border-color: #D4AF37;
}

.reg-radio input[type="radio"]:checked::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #D4AF37;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.reg-radio .label-man {
    color: #64B5F6;
    font-size: 14px;
    cursor: pointer;
}

.reg-radio .label-woman {
    color: #F48FB1;
    font-size: 14px;
    cursor: pointer;
}

/* =========================================
   5. File Input (Avatar)
   ========================================= */
.register-card input[type="file"].form-control {
    font-size: 13px;
    padding: 8px 14px;
    color: #aaa;
    cursor: pointer;
}

.register-card input[type="file"].form-control::file-selector-button {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    color: #D4AF37;
    padding: 4px 14px;
    margin-right: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.register-card input[type="file"].form-control::file-selector-button:hover {
    background: #D4AF37;
    color: #000;
}

/* =========================================
   6. Date Input
   ========================================= */
.register-card input[type="date"].form-control {
    color-scheme: dark;
}

/* =========================================
   7. Divider
   ========================================= */
.reg-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.3), transparent);
    margin: 8px 0;
    border: none;
}

/* =========================================
   8. Profile Avatar (reused on profile page)
   ========================================= */
.profile-avatar-wrapper {
    text-align: center;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    transition: box-shadow 0.3s ease;
}

.profile-avatar:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

/* Readonly fields styling */
.register-card .form-control[readonly] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================================
   9. Responsive
   ========================================= */
@media (max-width: 576px) {
    .register-card {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .reg-row-3,
    .reg-row-2 {
        grid-template-columns: 1fr;
    }

    .reg-gender-group {
        flex-wrap: wrap;
        height: auto;
        gap: 10px;
    }
}
