.registration-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.registration-modal {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.registration-header {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.registration-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.close-registration {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
    transition: color 0.2s;
}

.close-registration:hover {
    color: #000;
}

.registration-content {
    padding: 24px;
}

.registration-step {
    display: none;
}

.registration-step.active {
    display: block;
}

.progress-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: background 0.3s;
}

.progress-dot.active {
    background: #2563eb;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
}

.form-group input.error {
    border-color: #dc2626;
}

.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 4px;
    display: none;
}

.form-group.has-error .form-error {
    display: block;
}

/* Password Toggle Icon Button */
.md3-input-icon-wrapper {
    position: relative;
    width: 100%;
}

.md3-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.md3-password-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #2563eb;
}

.md3-password-toggle:active {
    background: rgba(0, 0, 0, 0.1);
}

.md3-password-toggle .material-icons {
    font-size: 20px;
    user-select: none;
}

/* Show error messages that aren't in form-groups (like legalError) */
.registration-step.active .form-error:not(:empty) {
    display: block !important;
    margin-top: 12px;
}

.password-strength {
    margin-top: 8px;
    display: none;
}

.password-strength.visible {
    display: block;
}

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

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

.strength-fill.weak {
    width: 33%;
    background: #dc2626;
}

.strength-fill.medium {
    width: 66%;
    background: #f59e0b;
}

.strength-fill.strong {
    width: 100%;
    background: #10b981;
}

.strength-text {
    font-size: 0.875rem;
    color: #666;
}

.legal-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.legal-checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.legal-checkbox label {
    flex: 1;
    margin: 0;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
}

.legal-checkbox a {
    color: #2563eb;
    text-decoration: none;
}

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

.registration-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-registration {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-registration:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary-reg {
    background: #2563eb;
    color: white;
}

.btn-primary-reg:hover:not(:disabled) {
    background: #1e40af;
}

.btn-secondary-reg {
    background: #f5f5f5;
    color: #333;
}

.btn-secondary-reg:hover:not(:disabled) {
    background: #e0e0e0;
}

.confirmation-message {
    text-align: center;
    padding: 24px 0;
}

.confirmation-message .material-icons {
    font-size: 64px;
    color: #10b981;
    margin-bottom: 16px;
}

.confirmation-message h3 {
    margin: 0 0 12px 0;
    color: #1a1a1a;
}

.confirmation-message p {
    color: #666;
    margin-bottom: 24px;
}

.email-highlight {
    color: #2563eb;
    font-weight: 600;
}

.resend-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.resend-link:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider-text {
    color: #666;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Forgot Password Link */
.forgot-password-link {
    color: #1976D2;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: #1565C0;
    text-decoration: underline;
}

/* Success Message */
.form-success {
    color: #2e7d32;
    padding: 12px;
    background-color: #e8f5e9;
    border-radius: 4px;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .registration-modal {
        max-width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .registration-actions {
        flex-direction: column;
    }
}
