/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
}

/* Dark Mode Body Styles */
body.dark-mode {
    background-color: #1a202c;
    color: #e2e8f0;
}

/* Authentication Container */
.auth-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s;
}

body.dark-mode .auth-container {
    background-color: #2d3748;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Header Styles */
.auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}
body.dark-mode .auth-header h2 {
    color: #e2e8f0;
}

.auth-header p {
    color: #777;
    margin-bottom: 30px;
}
body.dark-mode .auth-header p {
    color: #a0aec0;
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
body.dark-mode .form-group input {
    background-color: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}
body.dark-mode .form-group input:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.2);
}


/* Error and Message Styles */
.error, .general-error {
    color: #d9534f;
    font-size: 14px;
    margin-top: 5px;
}
body.dark-mode .error, body.dark-mode .general-error {
    color: #f56565;
}
.general-error {
    text-align: center;
    margin-bottom: 20px;
}

/* Button Styles */
.btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
/* Link Styles */
.auth-footer {
    margin-top: 20px;
}
.auth-footer p {
    color: #777;
}
body.dark-mode .auth-footer p {
    color: #a0aec0;
}
.auth-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}
.auth-footer a:hover {
    text-decoration: underline;
}
body.dark-mode .auth-footer a {
    color: #63b3ed;
}

/* Floating Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Changed from right to left */
    z-index: 1000;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display:none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

input:checked + .slider {
    background-color: #2196F3;
}

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

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}
