/* Auth Register Page Styles
   Note: Global resets and layout are handled by auth-shared.css (.auth-page).
   Keep this file focused on register-specific components and overrides.
*/

.register-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    width: 100%;
    max-width: 560px;
}

.register-header {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 1.75rem;
    text-align: center;
}

.register-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.register-header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.register-form { padding: 2rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Form label/input/error styles are provided by auth-shared.css */

.success-message {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.success-message.show {
    display: block;
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    width: 0%;
}

.strength-weak { background: #ef4444; width: 25%; }
.strength-fair { background: #f59e0b; width: 50%; }
.strength-good { background: #3b82f6; width: 75%; }
.strength-strong { background: #10b981; width: 100%; }

.strength-text {
    font-size: 0.75rem;
    color: #6b7280;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.terms-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #4f46e5;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.terms-checkbox a {
    color: #4f46e5;
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* Button styles are provided by auth-shared.css */

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    color: #6b7280;
    font-size: 0.875rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
    z-index: 1;
}

.divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.login-link {
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
}

.login-link a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Back-home link styles are provided by auth-shared.css */

/* Loading spinner styles are provided by auth-shared.css */

@media (max-width: 480px) {
    .register-container {
        margin: 10px;
    }
    
    .register-header,
    .register-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
