* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #003FA1;
    --secondary-color: #6A7CFE;
    --background-color: #f0f0f0;
    --text-color: #333;
    --input-border: #E0E5EE;
}

body {
    font-family: 'Inter', sans-serif;
    background: url('/frontend/img/4940019.jpg') repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    line-height: 1.5;
    margin: 0;
}

.registration-container {
    width: 900px;
    max-width: 95%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: all 0.3s ease;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #f0f0f0;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    position: relative;
    z-index: 2;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: var(--primary-color);
    color: white;
}

.registration-header {
    text-align: left;
    margin-bottom: 20px;
}

.registration-header h1 {
    color: var(--text-color);
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
}

.registration-header p {
    font-size: 14px;
    color: #666;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background: var(--background-color);
    border-radius: 8px;
    padding: 10px;
    transition: background-color 0.3s ease;
}

.input-group:focus-within {
    background-color: #e0e0e0;
}

.input-group i {
    margin-right: 10px;
    font-size: 18px;
    color: var(--text-color);
    transition: color 0.3s ease;
    min-width: 20px;
    text-align: center;
}

.input-group i:hover {
    color: var(--primary-color);
}

.input-group input, 
.input-group select {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: var(--text-color);
    width: 100%;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 15px;
}

.btn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 12px 0;
    width: 48%;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    transform: scale(1.02);
}

.btn-secondary {
    background: var(--background-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

a:hover {
    color: #1e5ac5;
}

.input-error {
    background-color: #ffe6e6 !important;
    border: 1px solid #ff4d4d;
}

@media (max-width: 768px) {
    .registration-container {
        width: 100%;
        border-radius: 0;
        padding: 20px;
    }

    .navigation-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

.input-group {
    position: relative;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 40px; /* Make space for the toggle button */
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle i {
    font-size: 16px;
}

/* Ensure icon is centered */
.password-toggle i {
    margin: 0;
    padding: 0;
}