:root {
    --primary-green: #198754;
    --dark-green: #146c43;
    --light-green: #e8f5e9;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    min-height: 100vh;
}

/* Background Pattern */
.bg-pattern {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-pattern::before,
.bg-pattern::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.bg-pattern::before {
    width: 500px;
    height: 500px;
    background: var(--primary-green);
    top: -250px;
    right: -150px;
}

.bg-pattern::after {
    width: 400px;
    height: 400px;
    background: var(--primary-green);
    bottom: -200px;
    left: -100px;
}

/* Main Container */
.login-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Login Card */
.login-card {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    width: 100%;
    max-width: 440px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-body {
    padding: 2.5rem 2rem !important;
}

/* Logo Section */
.logo-section {
/*    text-align: center;*/
    margin-bottom: 2.5rem;
}

.logo-wrapper {
    align-items: left;
    justify-content: left;
    animation: bounceIn 0.8s ease-out;
}

.logo-wrapper img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.logo-wrapper i {
    font-size: 3rem;
    color: white;
}

.logo-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.logo-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-green);
}

/* Button */
.btn-login {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25, 135, 84, 0.4);
    background: linear-gradient(135deg, var(--dark-green) 0%, #0f5132 100%);
}

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

/* Links */
.form-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.form-link {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.form-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.form-link:hover {
    color: var(--dark-green);
}

.form-link:hover::after {
    width: 100%;
}

/* Responsive */
@media (min-width: 576px) {
    .card-body {
        padding: 3rem 2.5rem !important;
    }

    .logo-wrapper i {
        font-size: 3.5rem;
    }

    .logo-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 768px) {
    .login-card {
        max-width: 480px;
    }

    .logo-wrapper i {
        font-size: 4rem;
    }
}

@media (max-width: 575px) {
    .login-container {
        padding: 1.5rem 1rem;
    }

    .card-body {
        padding: 2rem 1.5rem !important;
    }

    .logo-section {
        margin-bottom: 1.5rem;
    }

    .logo-wrapper {
    }

    .logo-wrapper i {
        font-size: 2.5rem;
    }

    .logo-title {
        font-size: 1.75rem;
    }

    .logo-subtitle {
        font-size: 0.875rem;
    }

    .form-control {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }

    .btn-login {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    .form-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        text-align: center;
    }

    .form-link {
        font-size: 0.875rem;
    }
}

@media (max-width: 400px) {
    .login-container {
        padding: 1rem 0.75rem;
    }

    .card-body {
        padding: 1.75rem 1.25rem !important;
    }

    .logo-wrapper {
    }

    .logo-wrapper i {
        font-size: 2.25rem;
    }

    .logo-title {
        font-size: 1.5rem;
    }
}

/* Loading State (Optional) */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}