* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8faff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    display: flex;
    /* width: 100%; */
    max-width: 1200px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: 600px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-section {
    flex: 1;
    background: linear-gradient(135deg, #7000B5 0%, #4b0082 100%);
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-image {
    width: 300px;
    height: 300px;
    margin: 30px 0;
}

.form-section {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-container {
    width: 100%;
    max-width: 400px;
}

.company-logo {
    text-align: center;
    margin-bottom: 30px;
}

.company-logo img {
    max-width: 200px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.company-logo img:hover {
    transform: scale(1.05);
}

.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo i {
    font-size: 3rem;
    color: #7000B5;
    margin-bottom: 15px;
}

.logo h2 {
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
}

.form {
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i:not(.password-toggle) {
    position: absolute;
    left: 15px;
    top: 15px;
    color: #666;
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-group .password-toggle {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    z-index: 3;
    transition: color 0.3s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.input-group .password-toggle:hover {
    color: #7000B5;
}

.input-group.password-field input {
    padding-right: 50px;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    position: relative;
    z-index: 1;
}

.input-group input:focus {
    outline: none;
    border-color: #7000B5;
    background: white;
    box-shadow: 0 0 0 3px rgba(112, 0, 181, 0.1);
}

.input-group input:focus + i:not(.password-toggle) {
    color: #7000B5;
}

.input-group input.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.input-group input.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.input-group input.error + i:not(.password-toggle) {
    color: #dc3545;
}

.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #7000B5 0%, #4b0082 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(112, 0, 181, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: #e9ecef;
    color: #6c757d;
}

.otp-resend {
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.otp-resend a {
    color: #7000B5;
    text-decoration: none;
    font-weight: 500;
}

.otp-resend a:hover {
    text-decoration: underline;
}

.progress-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    align-items: center;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e1e5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    color: #666;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: #7000B5;
    color: white;
    transform: scale(1.1);
}

.progress-step.completed {
    background: #28a745;
    color: white;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 20px;
    height: 2px;
    background: #e1e5e9;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step.completed::after {
    background: #28a745;
}

.progress-step.hide-line::after {
    display: none;
}

.success-message {
    text-align: center;
    padding: 40px 20px;
    color: #28a745;
}

.success-message i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 8px;
    padding-left: 5px;
    display: block;
    animation: slideDown 0.3s ease;
    position: relative;
    z-index: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        margin: 20px;
        min-height: auto;
    }
    
    .hero-section {
        display: none;
    }
    
    .form-section {
        padding: 40px 20px;
        flex: 1;
    }
    
    .form-container {
        max-width: 100%;
    }
    
    .company-logo {
        margin-bottom: 20px;
    }
    
    .company-logo img {
        max-width: 100px;
    }
    
    .logo {
        margin-bottom: 30px;
    }
    
    .logo h2 {
        font-size: 1.5rem;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .form-section {
        padding: 30px 15px;
    }
    
    .progress-step {
        width: 35px;
        height: 35px;
        margin: 0 8px;
        font-size: 0.9rem;
    }
    
    .progress-step::after {
        width: 16px;
    }
    
    .company-logo img {
        max-width: 180px;
    }
}
