﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

    .container:hover {
        transform: translateY(-5px);
    }

.image-section {
    flex: 1;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    color: white;
    overflow-y: auto;
}
    .image-section h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .image-section p {
        font-size: 1.1rem;
        line-height: 1.6;
        text-align: justify;
    }

.register-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

    .register-header h1 {
        color: #1a2a6c;
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .register-header p {
        color: #666;
    }

.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: 4px;
        background: #eee;
        transform: translateY(-50%);
        z-index: 1;
    }

    .progress-bar::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 0;
        width: 33%;
        height: 4px;
        background: #1a2a6c;
        transform: translateY(-50%);
        z-index: 2;
        transition: width 0.5s ease;
    }

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #777;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

    .progress-step.active {
        background: #1a2a6c;
        color: white;
        box-shadow: 0 0 0 5px rgba(26, 42, 108, 0.2);
    }

    .progress-step.completed {
        background: #4CAF50;
        color: white;
    }

.form-container {
    display: none;
}

    .form-container.active {
        display: block;
        animation: fadeIn 0.5s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

    .input-group i {
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        color: #777;
        transition: all 0.3s ease;
        z-index: 2;
    }

    .input-group input {
        width: 100%;
        padding: 15px 45px 15px 15px;
        border: 2px solid #ddd;
        border-radius: 10px;
        font-size: 1rem;
        transition: all 0.3s ease;
        outline: none;
        background: transparent;
        position: relative;
        z-index: 1;
    }

        .input-group input:focus {
            border-color: #1a2a6c;
            box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.1);
        }

            .input-group input:focus + i {
                color: #1a2a6c;
                transform: translateY(-50%) scale(1.2);
            }

        .input-group input:valid + i {
            color: #4CAF50;
        }

        .input-group input:invalid:not(:focus):not(:placeholder-shown) + i {
            color: #f44336;
        }

.floating-label {
    position: absolute;
    top: 50%;
    right: 45px;
    transform: translateY(-50%);
    color: #777;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 5px;
    z-index: 2;
}

.input-group input:focus + i + .floating-label,
.input-group input:not(:placeholder-shown) + i + .floating-label {
    top: 0;
    font-size: 0.8rem;
    color: #1a2a6c;
}

.password-strength {
    height: 5px;
    background: #eee;
    border-radius: 5px;
    margin-top: 5px;
    overflow: hidden;
    position: relative;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.strength-weak {
    background: #f44336;
    width: 33%;
}

.strength-medium {
    background: #ff9800;
    width: 66%;
}

.strength-strong {
    background: #4CAF50;
    width: 100%;
}

.password-requirements {
    font-size: 0.8rem;
    color: #777;
    margin-top: 5px;
}

.requirement {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}

    .requirement i {
        margin-left: 5px;
        font-size: 0.7rem;
    }

    .requirement.valid {
        color: #4CAF50;
    }

    .requirement.invalid {
        color: #f44336;
    }

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

    .checkbox-group input {
        margin-left: 10px;
        margin-top: 3px;
    }

    .checkbox-group label {
        font-size: 0.9rem;
        color: #555;
        line-height: 1.4;
    }

    .checkbox-group a {
        color: #1a2a6c;
        text-decoration: none;
    }

        .checkbox-group a:hover {
            text-decoration: underline;
        }

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.nav-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev {
    background: #f5f5f5;
    color: #555;
}

    .btn-prev:hover {
        background: #e0e0e0;
    }

.btn-next, .btn-submit {
    background: linear-gradient(to right, #1a2a6c, #b21f1f);
    color: white;
}

    .btn-next:hover, .btn-submit:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

.login-link {
    text-align: center;
    margin-top: 25px;
    color: #666;
}

    .login-link a {
        color: #1a2a6c;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

        .login-link a:hover {
            color: #b21f1f;
            text-decoration: underline;
        }

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        max-height: 95vh;
    }

    .image-section {
        padding: 25px;
        max-height: 40vh;
    }

        .image-section h2 {
            font-size: 2rem;
        }

    .register-section {
        padding: 30px 25px;
        max-height: 60vh;
    }
}