/**
 * Total Attainment - Auth Pages CSS
 * Login and Signup form styling
 */

/* Reset and Base */
.ta-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f0 100%);
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ta-auth-container {
    width: 100%;
    max-width: 420px;
}

.ta-auth-container-wide {
    max-width: 520px;
}

/* Card Styling */
.ta-auth-card {
    background: #ffffff !important;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 10px rgba(0, 0, 0, 0.04);
    padding: 40px;
    margin-bottom: 20px;
}

/* Header */
.ta-auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.ta-auth-logo {
    margin-bottom: 16px;
}

.ta-logo-icon {
    font-size: 48px;
    display: inline-block;
}

.ta-auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.ta-auth-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

/* Form Elements */
.ta-auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ta-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ta-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ta-form-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.ta-required {
    color: #ef4444;
}

.ta-form-input,
.ta-form-select,
.ta-form-textarea {
    padding: 12px 16px;
    font-size: 15px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff !important;
    color: #1f2937;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.ta-form-input:focus,
.ta-form-select:focus,
.ta-form-textarea:focus {
    outline: none;
    border-color: #107f82;
    box-shadow: 0 0 0 3px rgba(16, 127, 130, 0.1);
}

.ta-form-input::placeholder,
.ta-form-textarea::placeholder {
    color: #9ca3af;
}

.ta-form-hint {
    font-size: 12px;
    color: #9ca3af;
}

.ta-form-textarea {
    resize: vertical;
    min-height: 60px;
}

/* Slider */
.ta-slider-wrapper {
    padding: 8px 0;
}

.ta-form-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.ta-form-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #107f82;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(16, 127, 130, 0.3);
    transition: transform 0.2s ease;
}

.ta-form-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.ta-form-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #107f82;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(16, 127, 130, 0.3);
}

.ta-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Divider */
.ta-form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 8px 0;
}

.ta-form-divider::before,
.ta-form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.ta-form-divider span {
    padding: 0 16px;
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}

/* Error and Success Messages */
.ta-form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.ta-form-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

/* Buttons */
.ta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ta-btn-primary {
    background: #107f82;
    color: #ffffff !important;
}

.ta-btn-primary:hover {
    background: #0d6a6d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 127, 130, 0.3);
}

.ta-btn-primary:active {
    transform: translateY(0);
}

.ta-btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ta-btn-full {
    width: 100%;
}

/* Loading Spinner */
.ta-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: ta-spin 0.8s linear infinite;
}

@keyframes ta-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.ta-auth-footer {
    margin-top: 24px;
    text-align: center;
}

.ta-auth-footer p {
    font-size: 14px;
    color: #6b7280;
    margin: 8px 0;
}

.ta-auth-link {
    color: #107f82;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ta-auth-link:hover {
    color: #0d6a6d;
    text-decoration: underline;
}

.ta-auth-link-muted {
    color: #9ca3af;
    font-weight: 400;
}

.ta-auth-link-muted:hover {
    color: #6b7280;
}

/* Branding */
.ta-auth-branding {
    text-align: center;
}

.ta-auth-branding p {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

.ta-auth-branding strong {
    color: #107f82;
}

/* Responsive */
@media (max-width: 480px) {
    .ta-auth-card {
        padding: 28px 20px;
    }
    
    .ta-form-row {
        grid-template-columns: 1fr;
    }
    
    .ta-auth-title {
        font-size: 22px;
    }
}
