/* ====================================
   Register Flow Common Styles
   ==================================== */

/* QR Code section — mirrors verification_status.css */
.qr-container {
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.qr-code {
    display: inline-block;
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.qr-code canvas {
    display: block;
    margin: 0 auto;
}


/* Progress Indicator Styles */
.progress-step {
    transition: all 0.3s ease;
}

.progress-step.active {
    transform: scale(1.1);
}

/* Form Container Styles */
.register-form-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Input Field Styles */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: transparent;
    ring-color: #16a34a;
}

/* Button Styles */
.btn-primary {
    background-color: #16a34a;
    color: white;
    transition: background-color 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
    background-color: #15803d;
}

.btn-primary:disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
}

/* Error Message Styles */
.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Success Message Styles */
.success-message {
    color: #16a34a;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Required Mark */
.required-mark {
    color: #dc2626;
    margin-left: 0.25rem;
}

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

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

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

.password-strength.strong {
    background-color: #16a34a;
    width: 100%;
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #16a34a;
    background-color: #f0fdf4;
}

.file-upload-area.drag-over {
    border-color: #16a34a;
    background-color: #dcfce7;
}

/* Image Preview */
.image-preview {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid #e5e7eb;
}

/* Checkbox & Radio Styles */
input[type="checkbox"],
input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #16a34a;
    cursor: pointer;
}

/* Link Styles */
.register-link {
    color: #16a34a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.register-link:hover {
    color: #15803d;
    text-decoration: underline;
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top-color: #16a34a;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.6s linear infinite;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .register-form-container {
        padding: 1.5rem;
    }

    .progress-step {
        width: 1.5rem;
        height: 1.5rem;
    }
}
