/**
 * TAHN Authentication Forms Styles
 */

/* ===== Auth Page Container ===== */
.tahn-auth-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.tahn-auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ===== Auth Forms ===== */
.tahn-auth-form {
    background: #fff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tahn-auth-form h2 {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

.tahn-auth-form h3 {
    margin: 24px 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

/* ===== Registration Type Toggle ===== */
.tahn-reg-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
}

.tahn-reg-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.tahn-reg-tab:hover {
    color: #111827;
}

.tahn-reg-tab.active {
    background: white;
    color: #6C3DF4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ===== Form Groups ===== */
.tahn-form-group {
    margin-bottom: 20px;
}

.tahn-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.tahn-form-group input[type="text"],
.tahn-form-group input[type="email"],
.tahn-form-group input[type="password"],
.tahn-form-group input[type="tel"],
.tahn-form-group select,
.tahn-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.tahn-form-group input[type="text"]:focus,
.tahn-form-group input[type="email"]:focus,
.tahn-form-group input[type="password"]:focus,
.tahn-form-group input[type="tel"]:focus,
.tahn-form-group select:focus,
.tahn-form-group textarea:focus {
    outline: none;
    border-color: #6C3DF4;
    box-shadow: 0 0 0 3px rgba(108, 61, 244, 0.1);
}

.tahn-form-group input[type="file"] {
    width: 100%;
    padding: 8px;
    font-size: 14px;
}

/* Form Row - Multiple columns */
.tahn-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

/* Checkbox styling */
.tahn-form-checkbox {
    margin: 16px 0;
}

.tahn-form-checkbox label {
    display: flex;
    align-items: start;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.tahn-form-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.tahn-form-checkbox a {
    color: #6C3DF4;
    text-decoration: underline;
}

/* ===== Form Actions ===== */
.tahn-form-actions {
    margin-top: 24px;
}

.tahn-btn-primary {
    width: 100%;
    padding: 12px 24px;
    background: #6C3DF4;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tahn-btn-primary:hover {
    background: #5b33d1;
}

.tahn-btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* ===== Form Messages ===== */
.tahn-form-message {
    margin-top: 12px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.tahn-form-message:not(:empty) {
    display: block;
}

.tahn-form-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.tahn-form-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* ===== Description Text ===== */
.description {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .tahn-auth-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .tahn-auth-form {
        padding: 24px 20px;
    }

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

    .tahn-reg-toggle {
        flex-direction: column;
    }
}

/* ===== Referral Field Animation ===== */
.tahn-referral-field {
    overflow: hidden;
    transition: all 0.3s ease;
}
