/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Raleway", sans-serif;
    background: #4caf50; /* Green background like in the image */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

/* Main Login Container */
.login-container {
    width: 100%;
    max-width: 1000px;
    height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    position: relative;
}

.login-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Left Panel - Illustration */
.left-panel {
    flex: 1;
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    position: relative;
    overflow: hidden;
}

.illustration-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 200px;
    height: 400px;
    background: #2c3e50;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: rotate(-15deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #81c784;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* Character inside phone */
.character {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 120px;
}

.character-head {
    width: 30px;
    height: 30px;
    background: #ffdbac;
    border-radius: 50%;
    margin: 0 auto 5px;
    position: relative;
}

.character-head::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 20px;
    height: 20px;
    background: #2c3e50;
    border-radius: 50%;
}

.character-body {
    width: 40px;
    height: 50px;
    background: white;
    margin: 0 auto;
    border-radius: 5px;
    position: relative;
}

.character-body::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 5px;
    width: 30px;
    height: 20px;
    background: #4caf50;
    border-radius: 3px;
}

.character-chair {
    width: 50px;
    height: 20px;
    background: #424242;
    margin: 5px auto 0;
    border-radius: 3px;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.leaf {
    position: absolute;
    background: #a5d6a7;
    border-radius: 50% 0;
    animation: float 6s ease-in-out infinite;
}

.leaf-1 {
    width: 40px;
    height: 40px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.leaf-2 {
    width: 30px;
    height: 30px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.leaf-3 {
    width: 25px;
    height: 25px;
    top: 30%;
    right: 25%;
    animation-delay: 4s;
}

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

/* Right Panel - Login Form */
.right-panel {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.avatar {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.avatar-icon {
    width: 50px;
    height: 50px;
    background: #4caf50;
    border-radius: 50%;
    position: relative;
}

.avatar-icon::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
}

.avatar-icon::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 12px;
    width: 26px;
    height: 15px;
    background: white;
    border-radius: 0 0 13px 13px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: #424242;
    letter-spacing: 2px;
    margin: 0;
}

/* Form Styles */
.login-form {
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    z-index: 2;
    color: #9e9e9e;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    font-size: 16px;
    background: transparent;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-bottom-color: #4caf50;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-input.has-value + .form-label {
    top: -8px;
    left: 50px;
    font-size: 12px;
    color: #4caf50;
    font-weight: 500;
}

.form-input:focus ~ .input-icon {
    color: #4caf50;
}

.form-input.error {
    border-bottom-color: #f44336;
}

.form-input.error + .form-label {
    color: #f44336;
}

.form-input.error ~ .input-icon {
    color: #f44336;
}

.form-label {
    position: absolute;
    top: 15px;
    left: 50px;
    color: #9e9e9e;
    font-size: 16px;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 5px;
}

.error-message {
    display: block;
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
    margin-left: 50px;
}

/* Forgot Password */
.forgot-password {
    text-align: right;
    margin-bottom: 30px;
}

.forgot-password a {
    color: #9e9e9e;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #4caf50;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.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;
}

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

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        height: auto;
        flex-direction: column;
        max-width: 400px;
    }

    .left-panel {
        height: 200px;
        flex: none;
    }

    .phone-mockup {
        width: 120px;
        height: 240px;
        transform: rotate(-10deg);
    }

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

    .welcome-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .login-container {
        border-radius: 15px;
    }

    .left-panel {
        height: 150px;
    }

    .phone-mockup {
        width: 100px;
        height: 200px;
    }

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

    .welcome-title {
        font-size: 20px;
    }

    .form-input {
        padding: 12px 12px 12px 45px;
        font-size: 14px;
    }

    .form-label {
        font-size: 14px;
        left: 45px;
    }

    .input-icon {
        left: 12px;
    }

    .login-btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form-container {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus states for accessibility */
.form-input:focus,
.login-btn:focus {
    outline: 2px solid #4caf50;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .login-container {
        background: white;
        border: 2px solid #000;
    }

    .form-input {
        border-bottom-color: #000;
    }

    .form-input:focus {
        border-bottom-color: #000;
    }
}
