:root {
    --primary-green: #72b754;
    --dark-green: #5a9243;
    --light-green-bg: #f0f7ec;
    --light-gray: #f2f2f2;
    --border-color: #e0e0e0;
    --text-dark: #333;
    --text-light: #fff;
    --error-bg: #ffebee;
    --error-text: #d32f2f;
}

body {
    background: var(--light-green-bg);
    font-family: 'Asap', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(114, 183, 84, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(114, 183, 84, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(114, 183, 84, 0.08) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.logo {
    position: absolute;
    top: 30px;
    left: 40px;
    width: 120px;
    z-index: 10;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.login-wrapper {
    display: flex;
    width: 900px;
    height: 600px;
    max-width: 90vw;
    background-color: var(--text-light);
    border-radius: 20px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 5;
    backdrop-filter: blur(10px);
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 20px;
    z-index: -1;
}

.video-panel {
    flex: 0 0 auto;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.video-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        rgba(114, 183, 84, 0.1) 0%,
        transparent 50%,
        rgba(114, 183, 84, 0.05) 100%);
    z-index: 1;
}

.video-panel video {
    width: auto;
    height: 100%;
    filter: contrast(1.1) brightness(0.9);
}

.form-panel {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg,
        rgba(255,255,255,0.95) 0%,
        rgba(240,247,236,0.3) 100%);
}

.login-container {
    width: 400px;
    max-width: 85%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.login-container::before,
.login-container::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-top-left-radius: 40%;
    border-top-right-radius: 45%;
    border-bottom-left-radius: 35%;
    border-bottom-right-radius: 40%;
}

.login-container::before {
    left: 40%;
    bottom: -130%;
    background: radial-gradient(circle,
        rgba(114, 183, 84, 0.15) 0%,
        rgba(114, 183, 84, 0.08) 50%,
        transparent 100%);
    animation: waves 6s infinite linear;
}

.login-container::after {
    left: 35%;
    bottom: -125%;
    background: radial-gradient(circle,
        rgba(114, 183, 84, 0.2) 0%,
        rgba(114, 183, 84, 0.1) 50%,
        transparent 100%);
    animation: waves 7s infinite;
}

@keyframes waves {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
}

.login-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.login-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: var(--text-dark);
    text-align: center;
    font-weight: 600;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-green) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.login-header p {
    margin: 0 0 30px 0;
    color: #777;
    font-size: 16px;
    text-align: center;
    position: relative;
}

.login-header p::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    transition: all 300ms ease;
    z-index: 2;
}

.login-form input {
    font-family: 'Asap', sans-serif;
    display: block;
    border-radius: 8px;
    font-size: 16px;
    background: var(--light-gray);
    width: 100%;
    border: 1px solid var(--border-color);
    padding: 12px 12px 12px 45px;
    box-sizing: border-box;
    transition: all 300ms ease;
    position: relative;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(114, 183, 84, 0.1);
    transform: translateY(-2px);
}

.login-form input:focus + .input-icon {
    color: var(--primary-green);
    transform: translateY(-50%) scale(1.1);
}

.login-form button {
    font-family: 'Asap', sans-serif;
    cursor: pointer;
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    width: 100%;
    border: 0;
    padding: 14px 0;
    margin-top: 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    transition: all 300ms ease;
    position: relative;
    overflow: hidden;
}

.login-form button::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 600ms ease;
}

.login-form button:hover {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(114, 183, 84, 0.4);
}

.login-form button:hover::before {
    left: 100%;
}

.login-form button:active {
    transform: translateY(0);
}

.error-message {
    background: linear-gradient(135deg, var(--error-bg) 0%, rgba(255, 235, 238, 0.8) 100%);
    color: var(--error-text);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    border: 1px solid rgba(211, 47, 47, 0.2);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group {
    animation: fadeInUp 0.6s ease-out;
}

.input-group:nth-child(1) { animation-delay: 0.1s; }
.input-group:nth-child(2) { animation-delay: 0.2s; }
.login-form button { animation: fadeInUp 0.6s ease-out 0.3s both; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
    border-radius: 2px;
}

.login-header {
    position: relative;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .logo {
        top: 15px;
        left: 20px;
        width: 100px;
    }
    .login-wrapper {
        flex-direction: column;
        width: 100vw;
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
    }
    .video-panel {
        flex-basis: 30%;
        min-height: 200px;
    }
    .form-panel {
        flex-grow: 1;
    }
}