/* Registration Page Styles - Extends login.css */

.register-container {
    max-width: 480px;
}

/* Form Row (side-by-side fields) */
.form-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.form-row .form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row .form-field input {
    width: 100%;
}

.register-card {
    padding: 40px;
}

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

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.8;
}

.step-number {
    font-family: var(--ui-font);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: var(--ui-font-weight-semibold);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--active-color);
    border-color: var(--active-color);
    color: #000;
}

.step.completed .step-number {
    background: rgba(146, 199, 0, 0.3);
    border-color: var(--active-color);
    color: var(--active-color);
}

.step-label {
    font-family: var(--ui-font);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color-2);
}

.step.active .step-label {
    color: var(--text-color-1);
}

.step-line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 8px;
    margin-bottom: 20px;
}

/* Step Content */
.register-step {
    display: none;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.3s ease;
}

.register-step.active {
    display: flex;
}

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

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4px;
}

.step-description {
    font-family: var(--ui-font);
    font-size: 0.9rem;
    color: var(--text-color-2);
    text-align: center;
    margin-bottom: 8px;
}

/* Password Requirements */
.password-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.password-requirements .req {
    font-family: var(--ui-font);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color-2);
    transition: all 0.2s ease;
}

.password-requirements .req.valid {
    background: rgba(146, 199, 0, 0.15);
    color: var(--active-color);
}

/* Code Input */
.code-input {
    text-align: center;
    font-size: 1.5rem !important;
    letter-spacing: 0.5em;
    font-family: monospace;
}

/* Link Button */
.link-button {
    background: none;
    border: none;
    color: var(--text-color-2);
    font-family: var(--ui-font);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 12px;
    transition: color 0.2s ease;
}

.link-button:hover {
    color: var(--text-color-1);
}

.link-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Passkey Illustration */
.passkey-illustration {
    display: flex;
    justify-content: center;
    margin: 16px 0;
    color: var(--active-color);
    opacity: 0.8;
}

/* Year Selection Grid */
.year-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.year-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 16px;
    font-family: var(--ui-font);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-color-1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.year-option:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.year-option.selected {
    background: rgba(146, 199, 0, 0.15);
    border-color: var(--active-color);
}

.year-option .year-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color-1);
    transition: color 0.2s ease;
}

.year-option.selected .year-number {
    color: var(--active-color);
}

.year-option .year-label {
    font-family: var(--ui-font);
    font-size: 0.85rem;
    color: var(--text-color-2);
}

.year-option.selected .year-label {
    color: var(--text-color-1);
}

/* Curriculum Grid */
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.curriculum-grid-small {
    grid-template-columns: repeat(3, 1fr);
}

.curriculum-option {
    padding: 14px 12px;
    font-size: 0.95rem;
    font-family: var(--ui-font);
    font-weight: var(--ui-font-weight-medium);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-color-1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.curriculum-option:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.curriculum-option.selected {
    background: rgba(146, 199, 0, 0.15);
    border-color: var(--active-color);
    color: var(--active-color);
}

/* For 4 items (year 2 curricula), use 2x2 grid */
.year2-curriculum-group .curriculum-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* 5/2 Checkbox */
.cinq-demi-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: var(--ui-font);
    font-size: 0.9rem;
    color: var(--text-color-2);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--active-color);
}

/* Success Icon */
.success-icon {
    display: flex;
    justify-content: center;
    margin: 16px 0;
    color: var(--active-color);
}

/* Responsive */
@media (max-width: 480px) {
    .register-card {
        padding: 32px 20px;
    }

    .step-indicator {
        transform: scale(0.9);
    }

    .step-line {
        width: 24px;
    }

    .year-grid {
        gap: 8px;
    }

    .year-option {
        padding: 16px 12px;
    }

    .year-option .year-number {
        font-size: 1.5rem;
    }

    .curriculum-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .curriculum-grid-small {
        grid-template-columns: repeat(3, 1fr);
    }

    .year2-curriculum-group .curriculum-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
