@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Dashboard Colors */
    --emerald-primary: rgb(46, 204, 113);
    --emerald-dark: rgb(39, 174, 96);
    --emerald-gradient: linear-gradient(135deg, rgb(46, 204, 113) 0%, rgb(39, 174, 96) 100%);
    --bg-light: #f4f7f6;
    --text-main: #1a1a1a;
    --text-muted: #718096;
    --accent-orange: #f59e0b;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    background-color: var(--bg-light);
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 171, 120, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(245, 158, 11, 0.03) 0px, transparent 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-card {
    background: #ffffff;
    width: 100%;
    max-width: 460px;
    border-radius: 2rem;
    padding: 3.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.03);
    position: relative;
}

@media (max-width: 640px) {
    .login-card {
        padding: 2.5rem 1.5rem;
    }
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.custom-input {
    width: 100%;
    background: #f8faf9;
    border: 1.5px solid #edf2f0;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.custom-input:focus {
    outline: none;
    border-color: var(--emerald-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 171, 120, 0.1);
}

.login-btn {
    background: var(--emerald-gradient);
    color: #ffffff;
    border: none;
    padding: 1.1rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px -4px rgba(0, 129, 92, 0.4);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -4px rgba(0, 129, 92, 0.5);
    filter: brightness(1.05);
}

/* Toggle Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--emerald-primary);
}

input:checked+.slider:before {
    transform: translateX(22px);
}

.promo-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #ecfdf5;
    color: var(--emerald-dark);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

#errorContainer {
    display: none;
    animation: fadeIn 0.4s ease-out;
    background: #fff5f5;
    border-left: 4px solid #f87171;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}