@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #016c38;
    --primary-light: #4caf50;
    --secondary: #ffc107;
    --dark: #2d3436;
    --light: #ffffff;
    --bg-body: #f7f9fc;
    --text-muted: #636e72;
    --transition: all 0.3s ease;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--bg-body);
}

.login-page-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    position: relative;
    z-index: 1;
}

/* Left Side Panel - Desktop only */
.side-panel {
    flex: 1.2;
    background: linear-gradient(135deg, rgba(1, 108, 56, 0.9), rgba(76, 175, 80, 0.8)),
        url('../../../uploads/settings/header.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    color: white;
    position: relative;
}

.side-panel-content {
    position: relative;
    z-index: 2;
}

.side-panel h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.side-panel p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 500px;
    line-height: 1.6;
}

/* Right Side Login Panel */
.login-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    padding: 40px;
}

.glass-card {
    background: white;
    border-radius: 30px;
    padding: 60px 50px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.05);
    animation: fadeInScale 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(108, 92, 231, 0.05);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header img {
    height: 70px;
    margin-bottom: 20px;
}

.login-header h2 {
    color: var(--dark);
    font-weight: 800;
    margin: 0;
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.login-header h2 span {
    color: var(--primary);
}

.login-header p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 10px;
    font-weight: 500;
}

.input-container {
    position: relative;
    margin-bottom: 25px;
}

.input-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: var(--transition);
}

.input-container input {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    padding: 18px 18px 18px 55px;
    color: var(--dark);
    outline: none;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 500;
}

.input-container input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.input-container input:focus+i {
    color: var(--primary);
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary);
}

.btn-login {
    width: 100%;
    background: var(--primary);
    border: none;
    border-radius: 18px;
    padding: 18px;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(108, 92, 231, 0.3);
    filter: brightness(1.1);
}

.btn-login:active {
    transform: translateY(-1px);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.extra-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

#infoMessage {
    margin-bottom: 25px;
}

.info-box {
    border-radius: 15px;
    font-size: 0.95rem;
    padding: 15px;
    text-align: center;
    font-weight: 600;
}

.bg-gradient-info {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.bg-gradient-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.bg-gradient-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 1024px) {
    .side-panel {
        display: none;
    }

    .login-panel {
        background: linear-gradient(rgba(247, 249, 252, 0.8), rgba(247, 249, 252, 0.8)),
            url('../../../uploads/settings/header.jpeg');
        background-size: cover;
        background-position: center;
    }

    .glass-card {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
}

@media (max-width: 480px) {
    .login-panel {
        padding: 20px;
    }

    .glass-card {
        padding: 40px 25px;
    }

    .login-header h2 {
        font-size: 1.6rem;
    }
}