/* Login Page Styles */
.login-container {
    max-width: 500px;
    margin: 40px auto;
    background-color: white;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.login-container h2 {
    margin-bottom: 20px;
    color: #1e3a34;
    text-align: center;
}

.login-container label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #1e3a34;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #274d45;
}

.login-container .register-link {
    margin-top: 15px;
    text-align: center;
}

.login-container .register-link a {
    color: #1e3a34;
    text-decoration: underline;
    font-weight: bold;
}
/* 🌑 Improved Dark Mode Styling */

body.dark-mode {
    background-color: #0b1a0f !important; /* deeper greenish black */
    color: #cdeac0 !important;            /* soft mint text */
    font-family: 'Segoe UI', sans-serif;
}

body.dark-mode nav {
    background-color: #133e1e !important;
    border-bottom: 2px solid #7fdb6a !important;
}

body.dark-mode a {
    color: #8bf599 !important;
    text-decoration: none;
}

body.dark-mode a:hover {
    text-decoration: underline;
    color: #b7ffcc !important;
}

body.dark-mode .login-container,
body.dark-mode .content-box,
body.dark-mode .product-card,
body.dark-mode .cart-box {
    background-color: #122a18 !important;
    border: 1px solid #356f4f !important;
    box-shadow: 0 0 10px rgba(139, 245, 153, 0.15);
    padding: 1.5em;
    border-radius: 12px;
    color: #e2ffe2 !important;
}

/* Headings */
body.dark-mode h1,
body.dark-mode h2 {
    color: #a7ffb5 !important;
}

/* Buttons */
body.dark-mode button {
    background-color: #1f4e31 !important;
    color: #cdeac0 !important;
    border: 1px solid #8bf599 !important;
    border-radius: 6px;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

body.dark-mode button:hover {
    background-color: #296e45 !important;
    cursor: pointer;
}

/* Footer */
body.dark-mode footer {
    background-color: #112c1c !important;
    color: #85d993 !important;
    border-top: 1px solid #1c4c30 !important;
    padding: 1em;
    text-align: center;
}
