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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.container {
    display: flex;
    width: 100%;
    min-height: 99vh;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: white;
    position: relative;
}

.left-panel {
    flex: 1;
    background: linear-gradient(135deg,
            rgba(102, 16, 242, 0.8) 0%,
            rgba(76, 13, 184, 0.8) 50%,
            rgba(58, 10, 145, 0.8) 100%
            ),
        url('https://images.pexels.com/photos/3756679/pexels-photo-3756679.jpeg');
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 75% 0, 99% 100%, 0 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    background-size: cover;
    background-position: center;
}

.left-panel::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 100 100"><defs><radialGradient id="grad1" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,255,255,0);stop-opacity:1" /></radialGradient></defs><circle cx="20" cy="20" r="15" fill="url(%23grad1)"/><circle cx="80" cy="60" r="20" fill="url(%23grad1)"/><circle cx="40" cy="80" r="10" fill="url(%23grad1)"/></svg>');
    animation: floatBg 25s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes floatBg {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.9;
    }
}

.nav-menu {
    display: flex;
    gap: 30px;
    z-index: 10;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.9;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.nav-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    z-index: 10;
}

.logo-container img {
    transform: rotate(-90deg);
}

.logo {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: 9px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: rotate(180deg);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    100% {
        text-shadow: 0 4px 30px rgba(255, 255, 255, 0.2);
    }
}

.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
}

.flower-bg {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><radialGradient id="flowerGrad" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.15);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,255,255,0);stop-opacity:1" /></radialGradient></defs><g fill="url(%23flowerGrad)"><path d="M100 60 C120 40, 140 60, 120 80 C140 100, 120 120, 100 100 C80 120, 60 100, 80 80 C60 60, 80 40, 100 60 Z"/><circle cx="100" cy="80" r="15" fill="rgba(255,255,255,0.2)"/></g></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    animation: rotate 30s linear infinite;
    opacity: 0.7;
}

.flower-bg.medium {
    width: 500px;
    height: 500px;
    top: 20rem;
}

.flower-bg.big {
    width: 800px;
    height: 800px;
    top: 50rem;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 10;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

.right-panel {
    flex: 1;
    padding: 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    position: relative;
    z-index: 2;
    overflow-y: auto;
}

/* Header link styles - works for both login-header and signup-header */
.login-header, .signup-header {
    position: absolute;
    top: 40px;
    right: 40px;
    color: #6610f2;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border: 2px solid #6610f2;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.login-header:hover, .signup-header:hover {
    background: #6610f2;
    color: white;
    transform: translateY(-2px);
}

.welcome-section {
    margin-bottom: 40px;
    text-align: center;
}

.welcome-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e3d2fd, #d1b8fd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
}

.welcome-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(245, 154, 154, 0.3), transparent);
    animation: spin 3s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.welcome-icon img {
    width: 30px;
    height: 30px;
}

.welcome-section h1 {
    font-size: 2.2rem;
    color: #2d3436;
    margin-bottom: 10px;
    font-weight: 700;
}

.welcome-section p {
    color: #636e72;
    font-size: 1rem;
    opacity: 0.8;
}

/* Form styles - works for both signup-form and login-form */
.signup-form, .login-form {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    flex: 1;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2d3436;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #6610f2;
    box-shadow: 0 0 0 3px rgba(102, 16, 242, 0.1);
    background: white;
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #adb5bd;
}

.form-group .input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    cursor: pointer;
    transition: color 0.3s ease;
}

.form-group .input-icon:hover {
    color: #6610f2;
}

.password-strength {
    margin-top: 5px;
    font-size: 0.8rem;
}

.strength-bar {
    width: 100%;
    height: 3px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: 0%;
}

.strength-weak {
    background: #e74c3c;
    width: 25%;
}

.strength-medium {
    background: #f39c12;
    width: 50%;
}

.strength-strong {
    background: #27ae60;
    width: 75%;
}

.strength-very-strong {
    background: #6610f2;
    width: 100%;
}

.license-info {
    background: #f8f9ff;
    border: 1px solid #e0e7ff;
    border-radius: 8px;
    padding: 12px;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #6610f2;
}

/* Form options for login page */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6610f2;
}

.remember-me label {
    font-size: 0.9rem;
    color: #636e72;
    cursor: pointer;
}

.forgot-password {
    color: #6610f2;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Button styles - works for both signup-btn and login-btn */
.signup-btn, .login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #6610f2 0%, #4c0db8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 16, 242, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.signup-btn::before, .login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.signup-btn:hover::before, .login-btn:hover::before {
    left: 100%;
}

.signup-btn:hover, .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 16, 242, 0.4);
}

.signup-btn:disabled, .login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.footer-text {
    margin-top: 25px;
    text-align: center;
    color: #636e72;
    font-size: 0.85rem;
    line-height: 1.4;
}

.footer-text a {
    color: #6610f2;
    text-decoration: none;
    font-weight: 500;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* Link styles - works for both signin-link and signup-link */
.signin-link, .signup-link {
    margin-top: 20px;
    text-align: center;
    color: #636e72;
    font-size: 0.9rem;
}

.signin-link a, .signup-link a {
    color: #6610f2;
    text-decoration: none;
    font-weight: 500;
}

.signin-link a:hover, .signup-link a:hover {
    text-decoration: underline;
}

.validation-message {
    font-size: 0.8rem;
    margin-top: 5px;
    color: #e74c3c;
    display: none;
}

.validation-message.show {
    display: block;
}

.validation-message.success {
    color: #27ae60;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        min-height: auto;
    }

    .left-panel {
        clip-path: none;
        padding: 30px 20px;
        min-height: 200px;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: none;
    }

    .logo {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        font-size: 2rem;
        letter-spacing: 6px;
        transform: none;
    }

    .right-panel {
        padding: 30px 20px;
    }

    .login-header, .signup-header {
        position: static;
        display: inline-block;
        margin-bottom: 20px;
        width: fit-content;
    }

    .welcome-section h1 {
        font-size: 1.8rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .flower-bg {
        width: 200px;
        height: 200px;
    }
}