/* ───────────────────────────────────────────────────────────────
   GlobalTime.io – Shared Theme Styles (Light/Dark Mode)
──────────────────────────────────────────────────────────────── */

/* ─── Root Themes ─── */
body.light-mode {
    background: linear-gradient(135deg, #ffffff, #f5f7fa);
    color: #222;
}
body.dark-mode {
    background: linear-gradient(135deg, #0f0f0f, #1e1e1e);
    color: #e0e0e0;
}

/* ─── Container Wrapper ─── */
.login-wrapper,
.register-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 100px 20px 40px;
}

/* ─── Container Box ─── */
.login-container,
.register-container {
    background: rgba(0, 123, 255, 0.1);
    padding: 35px 28px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 400px;
    width: 100%;
    backdrop-filter: blur(10px);
    transition: 0.4s ease-in-out;
}
body.light-mode .login-container,
body.light-mode .register-container {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
body.dark-mode .login-container,
body.dark-mode .register-container {
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.06);
}

/* ─── Headings ─── */
.login-container h2,
.register-container h2 {
    margin-bottom: 24px;
    font-size: 28px;
    text-transform: uppercase;
    font-weight: 700;
}

/* ─── Input Fields ─── */
input {
    width: 90%;
    padding: 14px 16px;
    margin: 12px 0;
    border-radius: 10px;
    font-size: 15px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    outline: none;
}
body.light-mode input {
    background: #fff;
    color: #222;
    border: 1px solid #ddd;
}
body.light-mode input::placeholder {
    color: #888;
}
body.light-mode input:focus {
    background: #f9f9f9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}
body.dark-mode input {
    background: #2b2b2b;
    color: #fff;
    border: 1px solid #444;
}
body.dark-mode input::placeholder {
    color: #bbb;
}
body.dark-mode input:focus {
    background: #333;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* ─── Autofill Fix ─── */
body.dark-mode input:-webkit-autofill {
    background-color: #2b2b2b !important;
    color: #fff !important;
    -webkit-box-shadow: 0 0 0px 1000px #2b2b2b inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* ─── Button ─── */
button {
    width: 45%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
}
body.light-mode button {
    background: #888888;
    color: white;
}
body.light-mode button:hover {
    background: #666666;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
body.dark-mode button {
    background: linear-gradient(135deg, #ff9800, #007bff);
    color: white;
}
body.dark-mode button:hover {
    background: linear-gradient(135deg, #e36e13, #0056b3);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.3);
}

/* ─── Status Icons (Validation Tick/Cross) ─── */
.status-icon {
    font-size: 1rem;
    margin-left: 6px;
    transition: all 0.2s ease-in-out;
    opacity: 0;
    transform: scale(0.9);
}
.status-icon.show {
    opacity: 1;
    transform: scale(1);
}
.status-icon.valid { color: green; }
.status-icon.invalid { color: red; }

/* ─── Password Toggle ─── */
.password-container {
    position: relative;
    width: 100%;
}
.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
}
body.light-mode .toggle-password { color: #222; }
body.dark-mode .toggle-password { color: #eee; }

/* ─── Error / Link / Footer ─── */
.error {
    color: #ff4d4d;
    background: rgba(255, 0, 0, 0.15);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

p {
    margin-top: 18px;
    font-size: 15px;
}
p a {
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease;
}
body.light-mode p a {
    color: #007bff;
}
body.light-mode p a:hover {
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}
body.dark-mode p a {
    color: #00f2ff;
}
body.dark-mode p a:hover {
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.6);
}

/* ─── Footer ─── */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease;
}
body.light-mode footer {
    background: #f1f1f1;
    color: #333;
}
body.dark-mode footer {
    background: #181818;
    color: #fff;
}

body.register-page footer.site-footer {
    position: static !important;
    margin-top: 40px;
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
    .login-container,
    .register-container {
        width: 95%;
        padding: 28px 20px;
    }
}
