/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

body.light-mode {
    background-color: #f4f4f4;
    color: #333;
}

/* Login Container */
.login-container {
    background-color: #2a2a2a;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.light-mode .login-container {
    background-color: #ffffff;
    color: #333;
}

.login-container h1 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #ffffff;
}

.light-mode .login-container h1 {
    color: #333;
}

/* Logo Styles */
.logo {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}

/* Input Groups */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #d1d5db;
}

.light-mode .input-group label {
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    outline: none;
    background-color: #1a1a1a;
    color: #ffffff;
}

.light-mode .input-group input {
    background-color: #f4f4f4;
    color: #333;
    border: 1px solid #ccc;
}

.input-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px;
}

.password-wrapper i {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: #aaa;
}

.password-wrapper i:hover {
    color: #555;
}

/* Button Styles */
button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    color: #ffffff;
    background-color: #ff6600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #ff8533;
}

/* Spinner Styles */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Register Link */
.register-link {
    margin-top: 15px;
    text-align: center;
    color: #666;
}

.register-link a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Snackbar Styles */
#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
}

#snackbar.success {
    background-color: #4CAF50;
}

#snackbar.error {
    background-color: #f44336;
}

#snackbar.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.light-mode .theme-toggle {
    background-color: #fbbf24;
    color: #333;
}

.theme-toggle i {
    font-size: 24px;
}

.theme-toggle:hover {
    transform: scale(1.1);
}