﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.main-container {
    display: flex;
    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;
}

    .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: 50px 40px;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.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: 25px;
    position: relative;
}

.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;
}

.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-login {
    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-login:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(124, 58, 237, 0.4);
        background: linear-gradient(45deg, #8b5cf6, #9333ea);
    }

    .btn-login:active {
        transform: translateY(-1px);
    }

.forgot-password {
    text-align: center;
    margin-bottom: 25px;
}

    .forgot-password a {
        color: #8b5cf6;
        text-decoration: none;
        font-size: 0.95rem;
        transition: color 0.3s ease;
    }

        .forgot-password a:hover {
            color: #a78bfa;
            text-decoration: underline;
        }

.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;
    }

.register-link {
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
}

    .register-link a {
        color: #8b5cf6;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

        .register-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;
    }

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }

    .left-side {
        flex: 0 0 40vh;
        padding: 30px;
    }

    .right-side {
        flex-grow: 1;
        min-height: 60vh;
    }

    .brand-title {
        font-size: 2.5rem;
    }

    .feature-list {
        display: none;
    }

    .form-container {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-height: none;
    }
}

@media (max-width: 768px) {
    body {
        height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .main-container {
        height: 100vh;
        flex-direction: column;
    }

    .left-side {
        flex: 0 0 30vh;
        padding: 15px;
        min-height: 30vh;
    }

    .right-side {
        flex-grow: 1;
        min-height: 70vh;
        padding: 10px;
    }

    .brand-logo {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

        .brand-logo i {
            font-size: 2rem;
        }

    .brand-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .brand-subtitle {
        font-size: 0.9rem;
    }

    .form-container {
        background: rgba(255, 255, 255, 0.95);
        padding: 25px 20px;
        margin: 0;
        border-radius: 20px;
        flex-grow: 1;
        max-width: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: auto;
    }

    .form-header {
        margin-bottom: 25px;
    }

    .form-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .form-subtitle {
        font-size: 0.9rem;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-control {
        padding: 12px 15px 12px 45px;
        font-size: 0.95rem;
    }

    .input-icon {
        left: 15px;
        font-size: 1rem;
    }

    .btn-login {
        padding: 12px;
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .divider {
        margin: 20px 0;
    }
}

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 576px) {
    body {
        height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .main-container {
        height: 100vh;
        flex-direction: column;
    }

    .left-side {
        flex: 0 0 25vh;
        padding: 10px;
        min-height: 25vh;
    }

    .right-side {
        flex-grow: 1;
        min-height: 75vh;
        padding: 8px;
        display: flex;
        align-items: stretch;
    }

    .brand-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        gap: 8px;
    }

    .brand-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
        border-radius: 15px;
    }

        .brand-logo i {
            font-size: 1.5rem;
        }

    .brand-title {
        font-size: 1.5rem;
        margin-bottom: 5px;
        line-height: 1.2;
    }

    .brand-subtitle {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 0;
    }

    .form-container {
        background: rgba(255, 255, 255, 0.98);
        padding: 20px 15px;
        margin: 0;
        border-radius: 15px;
        flex-grow: 1;
        max-width: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: auto;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }

    .form-header {
        margin-bottom: 20px;
    }

    .form-title {
        font-size: 1.6rem;
        margin-bottom: 5px;
        line-height: 1.2;
    }

    .form-subtitle {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .form-control {
        padding: 12px 12px 12px 40px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .input-icon {
        left: 12px;
        font-size: 0.95rem;
    }

    .form-check {
        gap: 8px;
        margin-bottom: 20px;
    }

    .form-check-input {
        width: 18px;
        height: 18px;
    }

    .form-check-label {
        font-size: 0.85rem;
    }

    .btn-login {
        padding: 12px;
        font-size: 0.95rem;
        margin-bottom: 18px;
        border-radius: 12px;
    }

    .forgot-password {
        margin-bottom: 18px;
    }

        .forgot-password a {
            font-size: 0.85rem;
        }

    .divider {
        margin: 18px 0;
    }

        .divider span {
            font-size: 0.8rem;
            padding: 0 15px;
        }

    .register-link {
        font-size: 0.85rem;
    }

    .validation-error {
        font-size: 0.8rem;
    }

    .validation-summary {
        padding: 12px;
        margin-bottom: 18px;
        font-size: 0.85rem;
    }

    /* Hide floating circles on mobile for better performance */
    .floating-circle {
        display: none;
    }
}

/* Very small screens optimization */
@media (max-width: 400px) {
    .left-side {
        flex: 0 0 20vh;
        min-height: 20vh;
        padding: 8px;
    }

    .right-side {
        min-height: 80vh;
        padding: 5px;
    }

    .brand-logo {
        width: 45px;
        height: 45px;
    }

        .brand-logo i {
            font-size: 1.3rem;
        }

    .brand-title {
        font-size: 1.3rem;
    }

    .brand-subtitle {
        font-size: 0.75rem;
    }

    .form-container {
        padding: 15px 12px;
        border-radius: 12px;
    }

    .form-title {
        font-size: 1.4rem;
    }

    .form-control {
        padding: 10px 10px 10px 35px;
        font-size: 0.85rem;
    }

    .input-icon {
        left: 10px;
        font-size: 0.9rem;
    }
}
