/**
 * Register Page Styles
 * Custom registration page design
 * Isolated module - all classes prefixed with .trojan-
 */

.trojan-register-page {
    padding: 2rem 0 5rem;
    background: #f9fafb;
    min-height: 80vh;
    margin-top: -72px;
    padding-top: calc(72px + 2rem);
}

/* Register Header */
.trojan-register-header {
    text-align: center;
    margin-bottom: 3rem;
}

.trojan-register-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

/* Register Form Wrapper */
.trojan-register-form-wrapper {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.trojan-register-form {
    text-align: right;
}

/* Form Groups */
.trojan-form-group {
    margin-bottom: 1.5rem;
}

.trojan-form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    font-size: 0.9375rem;
}

.trojan-form-label .required {
    color: #dc2626;
    margin-right: 0.25rem;
}

.trojan-form-input,
.trojan-form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.trojan-form-input:focus,
.trojan-form-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.trojan-form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
}

/* Checkbox Label */
.trojan-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: #4a5568;
    line-height: 1.6;
}

.trojan-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #2563eb;
}

.trojan-checkbox-label a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.trojan-checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.trojan-form-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.trojan-form-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.trojan-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.trojan-submit-loader {
    display: none;
}

/* Form Messages */
.trojan-form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    font-weight: 600;
    text-align: center;
}

.trojan-form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.trojan-form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Register Footer */
.trojan-register-footer {
    text-align: center;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.trojan-register-footer p {
    margin: 0;
    font-weight: 600;
    color: #4a5568;
}

.trojan-register-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.trojan-register-footer a:hover {
    text-decoration: underline;
}

/* RTL Support */
[dir="rtl"] .trojan-register-form {
    text-align: right;
}

[dir="rtl"] .trojan-checkbox-label {
    flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 768px) {
    .trojan-register-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .trojan-register-header {
        margin-bottom: 2rem;
    }
}

