﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow-x: hidden;
}

.main-container {
    display: flex;
    min-height: 100vh;
}

/* Left Side - Image/Branding */
.left-side {
    flex: 1;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

    .left-side::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff05" points="0,1000 1000,0 1000,1000"/></svg>');
        background-size: cover;
    }

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

    .floating-circle:nth-child(1) {
        width: 200px;
        height: 200px;
        top: 20%;
        left: 10%;
        animation-delay: 0s;
    }

    .floating-circle:nth-child(2) {
        width: 150px;
        height: 150px;
        top: 60%;
        right: 15%;
        animation-delay: 2s;
    }

    .floating-circle:nth-child(3) {
        width: 100px;
        height: 100px;
        bottom: 20%;
        left: 30%;
        animation-delay: 4s;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.6;
    }
}

.brand-section {
    text-align: center;
    z-index: 2;
    position: relative;
}

.brand-logo {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #7c3aed, #8b5cf6);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

    .brand-logo i {
        font-size: 3.5rem;
        color: white;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 25px 50px rgba(124, 58, 237, 0.4);
    }
}

.brand-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.brand-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    margin-top: 40px;
    padding: 0;
}

    .feature-list li {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
        color: rgba(255, 255, 255, 0.8);
        font-size: 1rem;
    }

    .feature-list i {
        color: #8b5cf6;
        font-size: 1.2rem;
        width: 20px;
    }

/* Right Side - Form */
.right-side {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 0;
}

    .right-side::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(147, 51, 234, 0.02) 100%);
    }

.form-container {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 25px;
    padding: 40px 35px;
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    margin: 20px;
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.form-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-row {
    display: flex;
    gap: 15px;
}

    .form-row .form-group {
        flex: 1;
    }

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 1px solid #d1d5db;
    border-radius: 15px;
    background: #ffffff;
    color: #1a1a2e;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .form-control:focus {
        outline: none;
        border-color: #8b5cf6;
        background: #ffffff;
        box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
        transform: translateY(-2px);
    }

    .form-control::placeholder {
        color: #9ca3af;
    }

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b5cf6;
    font-size: 1.1rem;
    z-index: 1;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    margin-top: 20px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    position: relative;
}

    .form-check-input:checked {
        background: #8b5cf6;
        border-color: #8b5cf6;
    }

        .form-check-input:checked::before {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 12px;
            font-weight: bold;
        }

.form-check-label {
    color: #6b7280;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-register {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #7c3aed, #8b5cf6);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
    margin-bottom: 25px;
}

    .btn-register:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(124, 58, 237, 0.4);
        background: linear-gradient(45deg, #8b5cf6, #9333ea);
    }

    .btn-register:active {
        transform: translateY(-1px);
    }

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(147, 51, 234, 0.3);
    }

    .divider span {
        background: rgba(255, 255, 255, 0.95);
        padding: 0 20px;
        color: #6b7280;
        font-size: 0.9rem;
    }

.login-link {
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
}

    .login-link a {
        color: #8b5cf6;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

        .login-link a:hover {
            color: #a78bfa;
        }

.validation-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.validation-summary {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
    color: #ef4444;
}

    .validation-summary ul {
        margin: 0;
        padding-left: 20px;
    }

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
    color: #22c55e;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }

    .left-side {
        flex: 0 0 35vh;
        padding: 30px;
    }

    .brand-title {
        font-size: 2.5rem;
    }

    .feature-list {
        display: none;
    }
}

@media (max-width: 768px) {
    .left-side {
        flex: 0 0 30vh;
        padding: 20px;
    }

    .brand-logo {
        width: 80px;
        height: 80px;
    }

        .brand-logo i {
            font-size: 2.5rem;
        }

    .brand-title {
        font-size: 2rem;
    }

    .brand-subtitle {
        font-size: 1rem;
    }

    .form-container {
        padding: 30px 25px;
        margin: 15px;
        border-radius: 20px;
    }

    .form-title {
        font-size: 2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .left-side {
        flex: 0 0 25vh;
        padding: 15px;
    }

    .brand-title {
        font-size: 1.8rem;
    }

    .form-container {
        padding: 25px 20px;
        margin: 10px;
    }

    .form-title {
        font-size: 1.8rem;
    }
}
