:root {
    --primary-color: #00a99d;
    --primary-dark: #008c82;
    --primary-light: #4eccc2;
    --secondary-color: #f7941d;
    --secondary-dark: #e07c00;
    --secondary-light: #ffb55e;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --white: #ffffff;
    --error: #e74c3c;
    --success: #2ecc71;
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 15px 50px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: url('assets/voxnewbackground.png') center center/cover no-repeat fixed;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.login-container {
    display: flex;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    min-height: auto;
    max-height: none;
    position: relative;
    margin: 20px 0;
}

/* Welcome Side Styles */
.welcome-side {
    flex: 1;
    background: linear-gradient(135deg, rgba(0, 169, 157, 0.85), rgba(0, 140, 130, 0.9));
    color: var(--white);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: visible;
    backdrop-filter: blur(5px);
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.welcome-side h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.welcome-side .highlight {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.welcome-side .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    z-index: -1;
}

.welcome-side .tagline {
    font-size: 1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.character-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideIn 0.8s var(--transition-normal) forwards;
    animation-delay: 0.5s;
}

.character {
    flex: 0 0 160px;
    position: relative;
}

.character-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

.speech-bubble {
    position: relative;
    background-color: var(--white);
    color: var(--text-dark);
    padding: 15px 20px;
    border-radius: 20px;
    margin-left: 15px;
    max-width: 280px;
    box-shadow: var(--shadow-light);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent var(--white) transparent transparent;
}

.speech-bubble p {
    font-size: 0.95rem;
    font-style: italic;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.feature {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 10px 15px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.feature:hover {
    background-color: rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.feature i {
    margin-right: 8px;
    font-size: 1rem;
    color: var(--secondary-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.feature span {
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Login Side Styles */
.login-side {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin: 10px 0 25px;
    position: relative;
}

.logo {
    width: 160px;
    height: auto;
    position: relative;
    z-index: 2;
}

.logo-animation {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(247, 148, 29, 0.2) 0%, rgba(247, 148, 29, 0) 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: pulse 2s infinite;
}

.login-side h2 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--text-light);
    transition: var(--transition-normal);
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #e1e5ee;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #f9fafc;
    transition: var(--transition-normal);
    position: relative;
    z-index: 1;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
}

.input-group input:focus + .input-focus-effect {
    width: 100%;
}

.input-group input:focus ~ .input-icon {
    color: var(--primary-color);
}

.input-focus-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-normal);
    border-radius: 0 0 10px 10px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 2;
}

.toggle-password:hover {
    color: var(--text-medium);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    font-size: 0.85rem;
}

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

.remember-me input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #e1e5ee;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    cursor: pointer;
    transition: var(--transition-normal);
}

.remember-me input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.remember-me input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.remember-me label {
    cursor: pointer;
    color: var(--text-medium);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-normal);
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.login-button {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.login-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: var(--transition-slow);
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 169, 157, 0.3);
}

.login-button:hover::before {
    left: 100%;
}

.login-button i {
    transition: var(--transition-normal);
}

.login-button:hover i {
    transform: translateX(5px);
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    padding-bottom: 10px;
}

.version {
    margin-bottom: 5px;
}

.help-text {
    margin-bottom: 5px;
}

.help-text a, .developer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-normal);
}

.help-text a:hover, .developer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.developer {
    margin-top: 10px;
    font-size: 0.75rem;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('assets/wave.svg');
    background-size: 1000px 100px;
    filter: brightness(1.0) contrast(1.2);
}

.wave1 {
    animation: animate 30s linear infinite;
    z-index: 1000;
    opacity: 0.5;
    animation-delay: 0s;
    bottom: 0;
}

.wave2 {
    animation: animate2 15s linear infinite;
    z-index: 999;
    opacity: 0.4;
    animation-delay: -5s;
    bottom: 10px;
}

.wave3 {
    animation: animate 30s linear infinite;
    z-index: 998;
    opacity: 0.3;
    animation-delay: -2s;
    bottom: 15px;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 169, 157, 0.1);
    bottom: -100px;
    animation: floatUp 15s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shape i {
    color: var(--primary-color);
    opacity: 0.7;
    font-size: 1.2rem;
}

.shape1 {
    left: 10%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.shape2 {
    left: 30%;
    width: 50px;
    height: 50px;
    animation-delay: 5s;
    animation-duration: 12s;
}

.shape3 {
    left: 60%;
    width: 70px;
    height: 70px;
    animation-delay: 8s;
    animation-duration: 15s;
}

.shape4 {
    left: 80%;
    width: 45px;
    height: 45px;
    animation-delay: 2s;
    animation-duration: 20s;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes animate {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1000px;
    }
}

@keyframes animate2 {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: -1000px;
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0);
        opacity: 0;
        border-radius: 50%;
    }
    10% {
        opacity: 1;
    }
    20% {
        transform: translateY(-400px) rotate(90deg);
        border-radius: 60%;
    }
    40% {
        transform: translateY(-800px) rotate(180deg);
        border-radius: 40%;
    }
    60% {
        transform: translateY(-1200px) rotate(270deg);
        border-radius: 60%;
    }
    80% {
        transform: translateY(-1600px) rotate(360deg);
        border-radius: 50%;
    }
    100% {
        transform: translateY(-2000px) rotate(450deg);
        opacity: 0;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }
    
    .welcome-side {
        padding: 30px;
    }
    
    .welcome-side h1 {
        font-size: 2rem;
    }
    
    .character-container {
        margin-bottom: 20px;
    }
    
    .character {
        flex: 0 0 100px;
    }
    
    .speech-bubble {
        max-width: 100%;
    }
    
    .features {
        margin-top: 10px;
    }
    
    .logo {
        width: 160px;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column-reverse;
        max-height: none;
        min-height: auto;
    }
    
    .welcome-side {
        display: none;
    }
    
    .login-side {
        padding: 30px;
        background: linear-gradient(135deg, rgba(0, 169, 157, 0.1), rgba(0, 140, 130, 0.05));
    }
    
    .login-form-container {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .logo-container {
        margin-bottom: 20px;
    }
    
    .logo {
        width: 200px;
    }
    
    .login-side h2 {
        margin-bottom: 20px;
    }
    
    .login-form {
        gap: 15px;
    }
    
    .input-group input {
        padding: 12px 12px 12px 40px;
    }
    
    .login-button {
        margin-top: 5px;
    }
    
    .login-footer {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 10px;
    }
    
    .login-container {
        border-radius: 15px;
        box-shadow: var(--shadow-light);
    }
    
    .login-side {
        padding: 20px;
    }
    
    .logo {
        width: 180px;
    }
    
    .login-form-container {
        max-width: 100%;
    }
    
    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .login-button {
        padding: 12px;
    }
}
