.auth-box {
  width: 100%;
  max-width: 420px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 50%;
}
.auth-box.sign-up{
    padding-top: 100px;
}
#signupForm,#loginForm{
    width: 120%;
}
.auth-box .auth-input {
    height: 60px;
    border-radius: 10px;
    border: 1px solid #ddd;
    width: calc(100% - 40px);
    margin: 0 20px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
    margin-bottom: 20px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-box .auth-input i{
    font-size: 20px;
    color: #4a90e2;
}

.auth-box .auth-input input{
    background: transparent;
    font-size: 17px;
    width: 100%;
    color: #333333;
    border: none;
    outline: none;
}

.auth-box .auth-input input::placeholder {
    color: #999999;
}

.auth-box button{
    width: calc(100% - 40px);
    height: 50px;
    border-radius: 10px;
    background: #ff9966;
    color: white;
    padding: 8px 20px;
    margin: 30px 20px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-box button:hover {
    background: #ff8844;
    box-shadow: 0 4px 12px rgba(255, 153, 102, 0.4);
    transform: translateY(-2px);
}

.auth-box button:active {
    transform: translateY(0);
}

.auth-register {
    color: #666666;
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-register a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
}

.auth-register a:hover {
    text-decoration: underline;
}

body {
    background: #0a0a0a;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

/* Center container */
.auth-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #0a0a0a;
}

/* Card */
.auth-box {
    width: 100%;
    max-width: 430px;
    background: transparent;
    padding: 30px;
    border-radius: 16px;
    box-shadow: none;
    border: none;
}

/* Title */
.auth-title {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}

.auth-title p {
    font-size: 13px;
    color: #cccccc;
    margin-top: 5px;
}

/* Floating input */
.input-group {
    position: relative;
    margin-bottom: 22px;
}

.input-group input {
    width: 100%;
    padding: 16px 15px 16px 55px;
    border-radius: 12px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
    background: #ffffff;
    color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.input-group input::placeholder {
    color: #999999;
}

.input-group input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

/* Label */
.input-group label {
    position: absolute;
    left: 55px;
    top: 16px;
    color: #999999;
    font-size: 13px;
    transition: 0.2s;
    background: #ffffff;
    padding: 0 5px;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 11px;
    color: #4a90e2;
    background: #ffffff;
}

/* Icon */
.input-group i {
    position: absolute;
    left: 15px;
    top: 12px;
    background: #4a90e2;
    color: white;
    padding: 10px;
    border-radius: 8px;
}

/* Counter */
.count {
    position: absolute;
    right: 10px;
    bottom: -15px;
    font-size: 11px;
    color: #777777;
}

/* Links */
.auth-links {
    text-align: right;
    margin-bottom: 25px;
}

.auth-links a {
    font-size: 13px;
    font-weight: 600;
    color: #4a90e2;
    text-decoration: none;
    cursor: pointer;
}

.auth-links a:hover {
    text-decoration: underline;
    color: #3a7fd4;
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 15px;
}

.login-btn {
    flex: 1;
    background: #800000;
    color: white;
    padding: 14px;
    border-radius: 30px;
    border: none;
    font-weight: bold;
}

.register-btn {
    flex: 1;
    background: #22c35e;
    color: white;
    padding: 14px;
    border-radius: 30px;
    border: none;
    font-weight: bold;
}

/* 🔥 Mobile Responsive */
@media (max-width: 480px) {
    .auth-box {
        padding: 20px;
        border-radius: 12px;
    }

    .auth-title h2 {
        font-size: 18px;
    }

    .input-group input {
        padding: 14px 12px 14px 50px;
        font-size: 13px;
    }

    .input-group i {
        padding: 8px;
        top: 10px;
    }

    .btn-group {
        flex-direction: column;
    }

    .login-btn,
    .register-btn {
        width: 100%;
    }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
    .auth-box {
        max-width: 480px;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .auth-box {
        max-width: 450px;
    }
}

/* ============================================
   DARK MODE STYLES (Light theme takes priority)
   ============================================ */

html.dark-mode body {
    background: #0a0a0a;
}

html.dark-mode .auth-container {
    background: #0a0a0a;
}

html.dark-mode .auth-box {
    background: transparent;
}

html.dark-mode .auth-title h2 {
    color: #ffffff;
}

html.dark-mode .auth-title p {
    color: #cccccc;
}

html.dark-mode .auth-input {
    background: #ffffff;
    border: 1px solid #ddd;
}

html.dark-mode .auth-input i {
    color: #4a90e2;
}

html.dark-mode .auth-input input {
    background: transparent;
    color: #333333;
}

html.dark-mode .auth-input input::placeholder {
    color: #999999;
}

html.dark-mode .input-group input {
    background: #ffffff;
    border: 1px solid #ddd;
    color: #333333;
}

html.dark-mode .input-group input::placeholder {
    color: #999999;
}

html.dark-mode .input-group input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

html.dark-mode .input-group label {
    color: #999999;
    background: #ffffff;
}

html.dark-mode .input-group input:focus + label,
html.dark-mode .input-group input:not(:placeholder-shown) + label {
    color: #4a90e2;
    background: #ffffff;
}

html.dark-mode .input-group i {
    background: #4a90e2;
    color: white;
}

html.dark-mode .count {
    color: #777777;
}

html.dark-mode .auth-links a {
    color: #4a90e2;
}

html.dark-mode .auth-links a:hover {
    color: #3a7fd4;
}

html.dark-mode .auth-register {
    color: #666666;
}

html.dark-mode .auth-register a {
    color: #4a90e2;
    text-decoration: none;
}

html.dark-mode .auth-register a:hover {
    text-decoration: underline;
}

html.dark-mode .auth-box button {
    background: #ff9966;
    color: white;
    border: none;
    transition: all 0.3s ease;
}

html.dark-mode .auth-box button:hover {
    background: #ff8844;
    box-shadow: 0 4px 12px rgba(255, 153, 102, 0.4);
    transform: translateY(-2px);
}

html.dark-mode .auth-box button:active {
    transform: translateY(0);
}

/* Toast styles for dark mode */
html.dark-mode .toaster {
    background: #2d2d2d;
    border: 1px solid #404040;
    color: #e8e8e8;
}

/* Dark mode transitions */
* {
    transition-property: background-color, color, border-color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}