﻿
:root {
    --primary-green: #2e7d32;
    --dark-green: #1b5e20;
    --light-green: #4caf50;
    --accent-yellow: #ffeb3b;
    --gold-yellow: #ffc107;
    --accent-red: #f44336;
    --light-bg: #f9f9f9;
    --dark-text: #333333;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Curved background elements */
.curve-bg-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background-color: var(--primary-green);
    clip-path: ellipse(60% 100% at 0% 50%);
    z-index: -1;
    opacity: 0.1;
}

.curve-bg-right {
    position: fixed;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-color: var(--accent-yellow);
    clip-path: ellipse(60% 100% at 100% 50%);
    z-index: -1;
    opacity: 0.1;
}

.login-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-card {
    display: flex;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    position: relative;
}

    .login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 8px;
        background: linear-gradient(90deg, var(--primary-green), var(--gold-yellow), var(--accent-red));
    }

.login-form-section {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-section {
    flex: 1;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 235, 59, 0.1), rgba(255, 255, 255, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .welcome-section::before {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 200px;
        height: 200px;
        background-color: var(--gold-yellow);
        border-radius: 50%;
        opacity: 0.15;
        z-index: 0;
    }

    .welcome-section::after {
        content: '';
        position: absolute;
        bottom: -100px;
        left: -50px;
        width: 300px;
        height: 300px;
        background-color: var(--primary-green);
        border-radius: 50%;
        opacity: 0.1;
        z-index: 0;
    }

.brand-logo {
    text-align: center;
    margin-bottom: 2rem;
}

    .brand-logo img {
        width: 120px;
        height: auto;
        transition: transform 0.3s ease;
    }

    .brand-logo:hover img {
        transform: scale(1.05) rotate(-5deg);
    }

.company-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-top: 1rem;
    position: relative;
    display: inline-block;
}

    .company-title::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 3px;
        background: var(--gold-yellow);
        border-radius: 3px;
    }

.login-header {
    margin-bottom: 2rem;
    text-align: center;
}

.login-title {
    color: var(--primary-green);
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

    .login-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-green), var(--gold-yellow));
        border-radius: 3px;
    }

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-text);
}

.input-field {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-green);
    z-index: 2;
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

    .form-control:focus {
        border-color: var(--light-green);
        box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
        outline: none;
    }

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
    z-index: 2;
}

.forgot-password {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-green);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

    .forgot-password:hover {
        color: var(--dark-green);
        text-decoration: underline;
    }

.login-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .login-btn i {
        margin-right: 10px;
    }

    .login-btn:hover {
        background-color: var(--dark-green);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
    }

.register-link {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.95rem;
}

    .register-link a {
        color: var(--primary-green);
        font-weight: 500;
        text-decoration: none;
        transition: color 0.3s;
    }

        .register-link a:hover {
            color: var(--dark-green);
            text-decoration: underline;
        }

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.welcome-subtitle {
    color: var(--dark-text);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.features-container {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.features-title {
    color: var(--primary-green);
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.features-list {
    list-style: none;
}

    .features-list li {
        padding: 0.5rem 0;
        position: relative;
        padding-left: 30px;
        font-size: 0.95rem;
    }

        .features-list li::before {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: 0;
            color: var(--light-green);
        }

.language-dropdown {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.dropdown-toggle {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: var(--dark-text);
    font-size: 0.9rem;
}

    .dropdown-toggle i {
        margin-right: 8px;
        color: var(--primary-green);
    }

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 0.5rem 0;
    min-width: 150px;
}

.language-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.2s;
    font-size: 0.9rem;
}

    .language-item i {
        margin-right: 10px;
        color: var(--primary-green);
        font-size: 0.8rem;
        width: 15px;
        text-align: center;
    }

    .language-item:hover {
        background-color: #f5f5f5;
        color: var(--primary-green);
    }

.error-message {
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 4px solid var(--accent-red);
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

    .error-message i {
        margin-right: 10px;
        color: var(--accent-red);
    }

.footer {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--primary-green);
    color: white;
    margin-top: auto;
    font-size: 0.9rem;
}

    .footer a {
        color: var(--accent-yellow);
        text-decoration: none;
        transition: color 0.3s;
    }

        .footer a:hover {
            color: white;
            text-decoration: underline;
        }

/* Responsive styles */
@media (max-width: 992px) {
    .login-card {
        flex-direction: column;
    }

    .welcome-section {
        order: -1;
        padding: 2rem;
    }

    .login-form-section {
        padding: 2rem;
    }

    .curve-bg-left, .curve-bg-right {
        display: none;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 1rem;
    }

    .login-card {
        border-radius: 15px;
    }

    .welcome-section, .login-form-section {
        padding: 1.5rem;
    }

    .welcome-title {
        font-size: 1.5rem;
    }

    .company-title {
        font-size: 1.2rem;
    }
}

