/* General form styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.login-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 140px);
  padding: 40px 20px;
}

h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form styling */
.form-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 20px auto;
}

/* Nav bar */
header {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 1rem 2rem;
}

.logo {
    width: 70px;
    height: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #0077b6;
    background: rgba(0, 119, 182, 0.1);
    transform: translateY(-2px);
}

/* Form paragraphs */
form p {
    margin-bottom: 25px;
    position: relative;
}

/* Labels */
.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

/* Input fields */
.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8edf5;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #f8fafc;
    color: #2c3e50;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: white;
    transform: translateY(-2px);
}

/* Submit button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Progress indicator */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin: 40px 0 60px 0;
    position: relative;
    max-width: 600px;
    width: 100%;
}

.progress-indicator:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e8edf5;
    z-index: 1;
}

.progress-step {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background: white;
    color: #94a3b8;
    margin: 0 auto 12px;
    font-weight: 700;
    font-size: 20px;
    border: 3px solid #e8edf5;
    transition: all 0.4s ease;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    animation: pulse 2s infinite;
}

.step-label {
    font-size: 15px;
    color: #64748b;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.active .step-label {
    color: #2c3e50;
    font-weight: 700;
}

/* Info card */
.test-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0 40px 0;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.test-info-card:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 1;
}

.test-info-card h4 {
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.test-info-card ul {
    list-style: none;
    padding-left: 0;
    position: relative;
    z-index: 2;
}

.test-info-card li {
    margin-bottom: 14px;
    padding-left: 32px;
    position: relative;
    font-size: 15px;
    line-height: 1.5;
}

.test-info-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4cd964;
    font-weight: bold;
    font-size: 18px;
}

.test-info-card p {
    margin-top: 20px;
    opacity: 0.95;
    font-size: 14px;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

/* Email note */
.email-note {
    background: linear-gradient(135deg, #fff9db 0%, #fff3bf 100%);
    border-left: 5px solid #ffd43b;
    padding: 20px;
    margin: 25px 0;
    border-radius: 12px;
    font-size: 15px;
    color: #5a4a00;
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.2);
}

.email-note i {
    color: #ffd43b;
    margin-right: 12px;
    font-size: 20px;
}

.email-note strong {
    color: #5a4a00;
}

/* Form sections */
.form-section-title {
    color: #2c3e50;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
    margin: 40px 0 25px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.3rem;
}

.form-section-title i {
    font-size: 1.5em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form grid */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.form-group:focus-within {
    transform: translateY(-2px);
}

/* Password strength */
.password-strength {
    margin-top: 12px;
}

.strength-meter {
    height: 8px;
    background: #e8edf5;
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: width 0.4s ease;
    border-radius: 4px;
}

.strength-weak { background: #ef4444; }
.strength-medium { background: #f59e0b; }
.strength-strong { background: #10b981; }

/* Phone input */
.phone-input-group {
    display: flex;
    gap: 15px;
}

.country-code {
    flex: 0 0 140px;
}

.phone-number {
    flex: 1;
}

/* Character counter */
.bio-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

/* Success message */
.success-message {
    display: none;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    color: #155724;
    padding: 30px;
    border-radius: 16px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.2);
}

.success-message i {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Loading spinner */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

/* Flashes */
.flash-messages {
    animation: slideDown 0.5s ease-out;
    margin: 20px 0;
}

.flash-message {
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.flash-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 5px solid #28a745;
}

.flash-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 5px solid #dc3545;
}

/* Form errors */
.form-errors {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    color: #721c24;
}

.form-errors ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0 0 0;
}

.form-errors li {
    padding: 10px 0 10px 30px;
    position: relative;
    margin-bottom: 8px;
}

.form-errors li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}

/* Form footer */
.form-footer {
    border-top: 2px solid #e8edf5;
    padding-top: 25px;
    margin-top: 40px;
    text-align: center;
}

.form-footer .note {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.form-footer .note a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-footer .note a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Login link */
.login-link {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #64748b;
    font-size: 15px;
}

.login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #cbd5e0;
    text-align: center;
    padding: 2rem;
    font-size: 0.95rem;
    margin-top: 60px;
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

/* Responsive design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .progress-indicator {
        margin: 30px 0 40px 0;
    }

    .step-number {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 18px;
    }

    .step-label {
        font-size: 13px;
    }

    .form-section-title {
        font-size: 1.1rem;
        margin: 30px 0 20px 0;
    }

    .phone-input-group {
        flex-direction: column;
        gap: 10px;
    }

    .country-code {
        flex: 1;
        width: 100%;
    }

    form {
        padding: 30px;
        margin: 15px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.8rem;
    }

    form {
        padding: 25px 20px;
    }

    .navbar {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .test-info-card {
        padding: 25px 20px;
    }

    .submit-btn {
        padding: 16px;
        font-size: 16px;
    }
}

/* Focus states for accessibility */
.form-input:focus,
select:focus,
button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Hint text */
.email-hint,
.username-hint,
.experience-hint,
.password-hint {
    font-size: 0.85em;
    color: #64748b;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Error messages */
.error-message {
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.error-message::before {
    content: "⚠";
    font-size: 16px;
}

/* Select styling */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Textarea specific */
textarea.form-input {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.5;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #c1c9d6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}