/* =========================
   GLOBAL RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* =========================
   BACKGROUND
========================= */
body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top, #1e293b, #0b1220 60%);
    position: relative;
    overflow: hidden;
}

/* glow effect */
body::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: #2563eb;
    filter: blur(160px);
    opacity: 0.12;
    top: -120px;
    left: -120px;
    z-index: 0;
}

/* =========================
   LOGIN CARD
========================= */
.login-container {
    width: 360px;
    padding: 32px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
    animation: pop 0.4s ease;
    position: relative;
    z-index: 1;
}

@keyframes pop {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =========================
   LOGO
========================= */
.logo {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 10px;
    box-shadow: 0 10px 25px rgba(37,99,235,0.3);
}

/* =========================
   TEXT
========================= */
h2 {
    color: #38bdf8;
    margin-bottom: 4px;
}

p {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 18px;
}

/* =========================
   INPUT GROUP FIX
========================= */
.input-group {
    margin-bottom: 14px;
    position: relative;
}

/* =========================
   INPUTS
========================= */
input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(2,6,23,0.75);
    color: white;
    outline: none;
    transition: 0.2s;
    font-size: 14px;
}

input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* =========================
   PASSWORD TOGGLE FIX
========================= */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    font-size: 14px;
    user-select: none;
}

.toggle-password:hover {
    color: #38bdf8;
}

/* =========================
   BUTTON
========================= */
button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 5px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37,99,235,0.25);
}

/* =========================
   FORGOT PASSWORD
========================= */
.forgot {
    margin-top: 10px;
    text-align: right;
}

.forgot a {
    font-size: 12px;
    color: #60a5fa;
    text-decoration: none;
}

.forgot a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* =========================
   FOOTER
========================= */
.footer {
    margin-top: 18px;
    font-size: 11px;
    color: #64748b;
}

/* =========================
   ERROR ALERT
========================= */
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 13px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   MODAL BACKDROP
========================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);

    justify-content: center;
    align-items: center;

    z-index: 999;
}

/* =========================
   MODAL BOX
========================= */
.modal-content {
    width: 320px;

    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 16px;
    padding: 22px;

    text-align: center;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);

    animation: pop 0.25s ease;
}

/* =========================
   MODAL TITLE
========================= */
.modal-content h3 {
    color: #38bdf8;
    margin-bottom: 8px;
}

/* =========================
   MODAL TEXT
========================= */
.modal-content p {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 15px;
}

/* =========================
   CLOSE BUTTON (X)
========================= */
.close {
    position: absolute;
    margin-left: 135px;
    margin-top: -10px;

    font-size: 20px;
    color: #94a3b8;

    cursor: pointer;
    transition: 0.2s;
}

.close:hover {
    color: #fff;
}

/* =========================
   MODAL INPUT
========================= */
.modal-content input {
    width: 100%;
    padding: 12px;

    margin-bottom: 12px;

    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);

    background: rgba(2,6,23,0.75);
    color: white;

    outline: none;
}

/* =========================
   MODAL BUTTON
========================= */
.modal-content button {
    width: 100%;
    padding: 12px;

    border: none;
    border-radius: 10px;

    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}

.modal-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37,99,235,0.25);
}

.close:hover {
    color: #fff;
}

/* =========================
   RESET LINK NOTIFICATION
========================= */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;

    min-width: 220px;
    padding: 12px 16px;

    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255,255,255,0.08);

    color: #fff;
    font-size: 13px;

    border-radius: 12px;

    box-shadow: 0 20px 60px rgba(0,0,0,0.5);

    opacity: 0;
    transform: translateY(-10px);

    transition: 0.3s ease;

    z-index: 1000;
}

/* SUCCESS STYLE */
.toast.success {
    border-left: 4px solid #22c55e;
}

/* ERROR STYLE */
.toast.error {
    border-left: 4px solid #ef4444;
}

/* SHOW STATE */
.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.alert {
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 14px;
}

.alert-error {
    background: #ff4d4d;
    color: white;
}

.alert-success {
    background: #28a745;
    color: white;
}