/* Create Page Styles */
.registration-container {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 20px;
}

.registration-header {
    text-align: center;
    margin-bottom: 50px;
}

.registration-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #00BCD4, #28a745);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.registration-header p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Role Selection */
.role-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.role-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.role-card:hover::before {
    left: 100%;
}

.role-card:hover {
    transform: translateY(-10px);
    border-color: #00BCD4;
    box-shadow: 0 20px 40px rgba(0, 188, 212, 0.2);
}

.role-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #00BCD4, #28a745);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.role-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.role-card p {
    color: #7f8c8d;
    margin-bottom: 25px;
    line-height: 1.6;
}

.role-select-btn {
    background: linear-gradient(135deg, #00BCD4, #28a745);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.role-select-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
}

/* Form Sections */
.form-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.back-to-roles {
    position: relative;
    left: 0;
    top: 0;
    background: #000000;
    border: 1px solid #000000;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-to-roles:hover {
    background: #00BCD4;
    transform: translateX(-5px);
}

.form-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.form-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Form Steps */
.form-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

.form-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step-indicator {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #7f8c8d;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    margin: 0 20px;
}

.step-indicator.active {
    background: linear-gradient(135deg, #00BCD4, #28a745);
    color: white;
    transform: scale(1.1);
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.step-content h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

/* Form Groups */
.registration-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00BCD4;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 0.85rem;
}

/* Terms Agreement */
.terms-agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 30px 0;
}

.terms-agreement input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.terms-agreement label {
    margin-bottom: 0;
    font-weight: normal;
}

.terms-agreement a {
    color: #00BCD4;
    text-decoration: none;
}

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

/* Form Buttons */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

.next-step,
.prev-step,
.submit-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-step {
    background: linear-gradient(135deg, #00BCD4, #28a745);
    color: white;
    margin-left: auto;
}

.prev-step {
    background: #6c757d;
    color: white;
}

.submit-btn {
    background: linear-gradient(135deg, #28a745, #00BCD4);
    color: white;
    margin-left: auto;
}

.next-step:hover,
.prev-step:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
}

.spinner-animation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.spinner-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00BCD4, #28a745);
    animation: bounce 1.4s infinite ease-in-out;
}

.spinner-circle:nth-child(1) { animation-delay: -0.32s; }
.spinner-circle:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.loading-content p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #00BCD4, #28a745);
    border-radius: 3px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Success Modal */
.success-modal {
    text-align: center;
    padding: 40px;
    max-width: 400px;
}

.success-animation {
    margin-bottom: 30px;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #28a745;
}

.check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
}

.check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
}

.check-icon::before, .check-icon::after {
    content: '';
    height: 4px;
    background: #28a745;
    position: absolute;
    transform: scaleX(0);
    animation: check 0.5s ease-in-out 0.4s forwards;
}

@keyframes check {
    to { transform: scaleX(1); }
}

.icon-line {
    height: 4px;
    background: #28a745;
    display: block;
    position: absolute;
    z-index: 10;
}

.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.5s forwards;
}

.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.5s forwards;
}

@keyframes icon-line-tip {
    0% { width: 0; left: 1px; top: 19px; }
    54% { width: 0; left: 1px; top: 19px; }
    70% { width: 50px; left: -8px; top: 37px; }
    84% { width: 17px; left: 21px; top: 48px; }
    100% { width: 25px; left: 14px; top: 46px; }
}

@keyframes icon-line-long {
    0% { width: 0; right: 46px; top: 54px; }
    65% { width: 0; right: 46px; top: 54px; }
    84% { width: 55px; right: 0px; top: 35px; }
    100% { width: 47px; right: 8px; top: 38px; }
}

.icon-circle {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid rgba(40, 167, 69, 0.2);
}

.icon-fix {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
}

.success-modal h3 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.success-modal p {
    color: #7f8c8d;
    margin-bottom: 25px;
    line-height: 1.6;
}

.success-btn {
    background: linear-gradient(135deg, #28a745, #00BCD4);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .registration-container {
        margin: 60px auto 20px;
        padding: 15px;
    }
    
    .registration-header h1 {
        font-size: 2rem;
    }
    
    .role-selection {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .form-steps::before {
        width: 70%;
    }
    
    .step-indicator {
        width: 40px;
        height: 40px;
        margin: 0 10px;
        font-size: 0.9rem;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .back-to-roles {
        position: relative;
        margin-bottom: 20px;
        align-self: flex-start;
    }
}

/* Error States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

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