
/* Main Content */
main {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3D1D4F 0%, #5D2F6F 100%);
}

.registration-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 480px;
    width: 100%;
    margin: 20px;
    position: relative;
}

.registration-header {
    background: linear-gradient(135deg, #3D1D4F 0%, #733373 100%);
    color: white;
    text-align: center;
    padding: 40px 30px 30px;
    position: relative;
    overflow: hidden;
}

.registration-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
}

.registration-header .content {
    position: relative;
    z-index: 1;
}

.registration-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.registration-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.account-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.registration-form {
    padding: 40px 30px;
}

.form-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3D1D4F;
    margin-bottom: 15px;
    text-align: center;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    background: white;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.social-btn.google {
    border-color: #db4437;
}

.social-btn.google:hover {
    border-color: #c23321;
    background: #fef7f7;
}

.social-btn.facebook {
    border-color: #4267B2;
}

.social-btn.facebook:hover {
    border-color: #365899;
    background: #f6f8ff;
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
    color: #666;
    font-size: 0.9rem;
}

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

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

.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 15px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #733373;
    background: white;
    box-shadow: 0 0 0 3px rgba(115, 51, 115, 0.1);
}

.form-group.required label::after {
    content: ' *';
    color: #e74c3c;
}

.phone-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(45deg, #3D1D4F, #FFD700);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(61, 29, 79, 0.3);
}

.terms {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

.terms a {
    color: #733373;
    text-decoration: none;
}

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

.back-link {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #3D1D4F;
    padding: 10px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.back-link:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Phone Input Enhancement */
.phone-input-group {
    position: relative;
}

.phone-prefix {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 500;
    pointer-events: none;
}

.phone-input-group input {
    padding-left: 50px;
}

/* Success/Error Messages */
.message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.step {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.step.active {
    background: linear-gradient(45deg, #3D1D4F, #FFD700);
    color: white;
}

.step.completed {
    background: #28a745;
    color: white;
}

.step.pending {
    background: #e1e1e1;
    color: #666;
}

.step-line {
    width: 40px;
    height: 2px;
    background: #e1e1e1;
    transition: all 0.3s ease;
}

.step-line.completed {
    background: #28a745;
}

/* OTP Section Styles */
.otp-section {
    padding: 25px;
    background: linear-gradient(135deg, #f8f4ff 0%, #fff8e1 100%);
    border-radius: 15px;
    border: 2px solid #3D1D4F;
    margin-top: 20px;
    text-align: center;
    display: none;
}

.otp-section.active {
    display: block;
    animation: slideInUp 0.5s ease;
}

.otp-title {
    color: #3D1D4F;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.otp-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.phone-display {
    background: rgba(61, 29, 79, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    color: #3D1D4F;
    display: inline-block;
    margin: 0 5px;
}

.otp-input-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

.otp-input {
    width: 45px;
    height: 45px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #3D1D4F;
    box-shadow: 0 0 0 3px rgba(61, 29, 79, 0.1);
}

.otp-input.filled {
    background: #f0fff0;
    border-color: #28a745;
}

.otp-timer {
    color: #666;
    font-size: 0.9rem;
    margin: 15px 0;
}

.otp-timer.expired {
    color: #e74c3c;
}

.otp-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.otp-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.otp-btn.verify {
    background: linear-gradient(45deg, #3D1D4F, #FFD700);
    color: white;
}

.otp-btn.verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(61, 29, 79, 0.3);
}

.otp-btn.verify:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.otp-btn.resend {
    background: white;
    color: #3D1D4F;
    border: 2px solid #3D1D4F;
}

.otp-btn.resend:hover:not(:disabled) {
    background: #3D1D4F;
    color: white;
}

.otp-btn.resend:disabled {
    color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

/* Hide/Show Steps */
.step-content {
    display: none;
}

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

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .registration-container {
        margin: 10px;
        max-width: none;
    }

    .registration-form {
        padding: 30px 20px;
    }

    .registration-header {
        padding: 30px 20px 25px;
    }

    .registration-title {
        font-size: 1.7rem;
    }

    .back-link {
        position: static;
        display: inline-block;
        margin: 20px 0;
    }

    main {
        padding-top: 20px;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: slideInUp 0.8s ease forwards;
}