* {
    box-sizing: border-box;
}

body {
    background: #f1f1f1;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.main-header {
    color: #070707;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: start;
    align-items: center;
    font-family: 'Inter', sans-serif;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.error-message {
    color: #dc2626;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: start;
}

header h1 {
    font-size: 1.8rem;
    margin: 0;
}

.header-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
}

.header-logo {
    width: 60px;
    height: auto;
    margin-right: 20px;
}

.header-text h1 {
    margin: 0;
    font-size: 1.8rem;
}

.header-text p {
    margin: 4px 0 0;
    font-size: 1rem;
    opacity: 0.9;
}

.register-container {
    background-color: white;
    padding: 40px;
    margin: 40px auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 1100px;
    width: 90%;
}

form {
    width: 100%;
}

fieldset {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px 30px 35px;
    margin-bottom: 25px;
    background-color: #fefefe;
}

legend {
    font-weight: 700;
    font-size: 1.3rem;
    color: #373737;
    padding: 0 12px;
    margin: 0 auto;
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border-radius: 8px;
}

.form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 35px;
    width: 100%;
}

.form-group {
    flex: 2 2 30%;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

label {
    margin-bottom: 6px;
    font-weight: 400;
    color: #374151;
}

input,
select {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

button {
    min-width: 120px;
    padding: 12px 20px;
    background-color: #3160c5;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

button:hover {
    background-color: #1e40af;
}

@media(max-width: 600px) {
    .form-group {
        flex: 1 1 100%;
    }

    .header-text h1 {
        font-size: 1.4rem;
    }
}

.error {
    color: #dc2626;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
}

.wizard-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.wizard-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
}

.wizard-step {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    height: 550px;
}

.wizard-step.active {
    left: 0;
    opacity: 1;
    transform: translateX(0%);
    position: relative;
}

.code-input {
    font-size: 22px;
    padding: 12px 18px;
    border: 2px solid #ccc;
    border-radius: 10px;
    width: 100%;
    text-align: center;
    letter-spacing: 5px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.code-input:focus {
    border-color: #5c659e;
    outline: none;
}

.btn-primary {
    background-color: #5c659e;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #3b3f66;
}

.resend-btn {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #555;
    text-decoration: underline;
}

.email-confirm-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.resend:hover {
    color: #3b3f66;
}

.code-input-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    align-content: center;
    align-items: center;
}

.code-input-container input {
    width: 150px;
}

.unset-height {
    height: unset;
}

.password-confirm-buttons {
    display: flex;
    justify-content: center;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.toggle-password {
    cursor: pointer;
    user-select: none;
    font-size: 1.2em;
    color: #666;
    margin-left: -35px;
}

.password-input {
    width: 100% !important;
    padding-right: 2.5em;
    box-sizing: border-box;
}

.align-center{
    display: flex;
    justify-content: center;
}

.flex-20 {
    flex: 2 2 20%
}

.flex-30 {
    flex: 2 2 30%
}

.flex-50 {
    flex: 2 2 50%
}

.flex-100 {
    flex: 2 2 100%
}