/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0052CC 0%, #0065FF 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Registration Container */
.registration-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 82, 204, 0.2);
    padding: 48px;
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

.registration-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0052CC, #0065FF);
}

/* Logo Section */
.logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo h1 {
    color: #0052CC;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.logo p {
    color: #6B778C;
    font-size: 14px;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active {
    background: #0052CC;
    color: white;
}

.step.completed {
    background: #36B37E;
    color: white;
}

.step.pending {
    background: #F4F5F7;
    color: #6B778C;
    border: 2px solid #DFE1E6;
}

.step-divider {
    width: 24px;
    height: 2px;
    background: #DFE1E6;
    transition: all 0.3s ease;
}

.step-divider.completed {
    background: #36B37E;
}

/* Form Sections */
.form-section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #172B4D;
    margin-bottom: 8px;
    text-align: center;
}

.section-subtitle {
    color: #6B778C;
    font-size: 14px;
    text-align: center;
    margin-bottom: 24px;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    color: #172B4D;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.required::after {
    content: " *";
    color: #DE350B;
}

input[type="email"], input[type="text"], input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #DFE1E6;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #FAFBFC;
}

input:focus {
    outline: none;
    border-color: #0052CC;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

input.error {
    border-color: #DE350B;
    background: #FFEBE6;
}

input.success {
    border-color: #36B37E;
    background: rgba(54, 179, 126, 0.05);
}

/* OTP Input */
.otp-input-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.otp-input {
    width: 48px;
    height: 48px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #DFE1E6;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #0052CC;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.otp-input.filled {
    border-color: #36B37E;
    background: rgba(54, 179, 126, 0.05);
}

.otp-input.error {
    border-color: #DE350B;
    background: #FFEBE6;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-container input[type="checkbox"] {
    accent-color: #0052CC;
    width: 16px;
    height: 16px;
}

/* Buttons */
.btn {
    width: 100%;
    background: #0052CC;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover:not(:disabled) {
    background: #0043A3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.btn:disabled {
    background: #A5ADBA;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #F4F5F7;
    color: #42526E;
    border: 1px solid #DFE1E6;
}

.btn-secondary:hover:not(:disabled) {
    background: #EBECF0;
    border-color: #C1C7D0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.message.show {
    opacity: 1;
    transform: translateY(0);
}

.message.error {
    background: #FFEBE6;
    color: #DE350B;
    border: 1px solid #FFBDAD;
}

.message.success {
    background: #E3FCEF;
    color: #006644;
    border: 1px solid #ABF5D1;
}

.message.info {
    background: #DEEBFF;
    color: #0052CC;
    border: 1px solid #B3D4FF;
}

/* Resend Section */
.resend-section {
    text-align: center;
    margin-top: 20px;
}

.resend-text {
    color: #6B778C;
    font-size: 14px;
    margin-bottom: 8px;
}

.resend-timer {
    color: #0052CC;
    font-weight: 600;
    font-size: 14px;
}

.resend-link {
    color: #0052CC;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
}

.resend-link:hover {
    text-decoration: underline;
}

/* Back Link */
.back-link {
    color: #6B778C;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
}

.back-link:hover {
    color: #0052CC;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 32px;
    color: #6B778C;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .registration-container {
        padding: 32px 24px;
        margin: 20px;
    }
    
    .logo h1 {
        font-size: 24px;
    }

    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .btn-group {
        flex-direction: column;
    }
}