/* Стили для страницы регистрации (registration.html) */
/* Registration Container - растягиваем на всю ширину */
.registration-container {
    background: var(--white);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    margin: 0;
    width: 100%; /* Занимает всю ширину */
}

/* Registration Body - растягиваем на всю ширину */
.registration-body {
    padding: 1.5rem;
    width: 100%; /* Занимает всю ширину */
}

/* Status Toggle */
.status-toggle {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    padding: 0.75rem;
    background-color: var(--bg-light);
    border-radius: var(--radius);
}

.status-label {
    flex: 1;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked + .toggle-slider {
    background-color: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Button */
.btn-primary {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    height: 52px;
    margin-top: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#candidateFields, #employerFields {
    animation: fadeIn 0.4s ease-out;
}

#regForm {
    display: flex;
    flex-direction: column;
    min-height: 440px;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 480px) {
    .registration-body {
        padding: 1.25rem;
    }

    .status-toggle {
        margin: 0.875rem 0;
        padding: 0.675rem;
    }

    .btn-primary {
        padding: 0.8rem 1.5rem;
        height: 46px;
    }
}

@media (max-width: 380px) {
    .registration-body {
        padding: 1rem;
    }
}