/* ===========================
   LOGIN THEME BUTTON
   =========================== */

.theme-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    box-shadow: var(--card-shadow);
    transition: .25s ease;
}

.theme-toggle-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .theme-toggle-btn {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

/* ===========================
   LOGIN CARD
   =========================== */

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 430px;
    margin: 20px;
    padding: 45px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all .3s ease;
}

.login-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--primary),
        var(--primary-dark)
    );
}

/* ===========================
   HEADINGS
   =========================== */

.login-container h1,
.login-container h2,
.login-container h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.login-container p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* ===========================
   LABELS
   =========================== */

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===========================
   INPUTS
   =========================== */

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 15px;
    transition: all .25s ease;
}

input::placeholder {
    color: var(--text-secondary);
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, .15);
}

/* ===========================
   BUTTON
   =========================== */

button[type="submit"] {
    width: 100%;
    padding: 15px;
    border: none;
    background: var(--primary);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
}

button[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* ===========================
   LINKS
   =========================== */

a {
    color: var(--primary);
    text-decoration: none;
    transition: .25s;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===========================
   FLASH MESSAGE
   =========================== */

.flash-msg {
    list-style: none;
    margin-bottom: 20px;
    padding: 15px 18px;
    border-left: 5px solid var(--warning);
    background: rgba(245, 158, 11, .10);
    color: var(--text-primary);
}

/* ===========================
   MODAL
   =========================== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    width: 100%;
    max-width: 420px;
    padding: 35px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}

/* ===========================
   UTILITIES
   =========================== */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 600px) {
    .login-container {
        margin: 15px;
        padding: 35px 24px;
    }

    body::before {
        background-size: 30px 30px;
    }
}