/* 🌌 Futuristic Background */
body {
    margin: 0;
    font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #ffa5a5 100%);
    background-size: 400% 400%;
    animation: bgShift 14s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #fff;
}

@keyframes bgShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 🌟 Main Card */
main {
    width: 360px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 35px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(18px);
    text-align: center;
    animation: fadeIn 0.6s ease;
}

/* Title */
h1 {
    margin-bottom: 25px;
    font-size: 24px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

/* Inputs */
input {
    padding: 10px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 14px;
    outline: none;
    width: 100%;
    height: 38px;
    /* ✅ balanced */
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin-bottom: 10px;
}

input:focus {
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

/* 🔹 Form Layout */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-btn {
    width: 100%;
    margin-top: 6px;
}

/* Neon Buttons */
button,
.link-btn {
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 10px 24px rgba(102, 126, 234, 0.45);
}

button:hover,
.link-btn:hover {
    box-shadow: 0 14px 30px rgba(118, 75, 162, 0.55);
    transform: translateY(-2px);
}

/* 🔹 Link Group */
.link-group {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.link-btn {
    flex: 1;
    text-align: center;
    text-decoration: none;
}

/* UID wrapper */
.uid-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* UID Info Button */
.uid-wrapper .info-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    color: #ffffff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.uid-wrapper .info-btn::before {
    content: "ℹ";
    /* ✅ Replaced ? with info icon */
    font-weight: bold;
}

.uid-wrapper .info-btn:hover {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 24px rgba(240, 147, 251, 0.45);
}

/* Tooltip */
.tooltip {
    position: absolute;
    top: 42px;
    right: 0;
    background: rgba(53, 38, 80, 0.96);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    width: 240px;
    line-height: 1.4em;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    display: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 1000;
}

/* 🌌 Custom Alert Overlay */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(32, 22, 48, 0.72);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

.custom-alert-box {
    background: rgba(255, 255, 255, 0.97);
    border: 2px solid rgba(245, 87, 108, 0.35);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    width: 340px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(255, 255, 255, 0.6);
    animation: popUp 0.4s ease;
}

.custom-alert-box span {
    font-size: 42px;
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 0 15px #ff4b2b, 0 0 25px #ff0000;
}

.custom-alert-box p {
    color: #1f2937;
    font-size: 15px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.custom-alert-box button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(90deg, #ff4b2b, #ff0000);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
    transition: 0.3s;
}

.custom-alert-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px #ff0000;
}

/* Animations */
@keyframes popUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animations */
@keyframes popUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.tooltip.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 🔹 Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: rgba(255, 255, 255, 0.96);
    padding: 25px;
    border-radius: 16px;
    width: 340px;
    text-align: center;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.3s ease-in-out;
    color: #1f2937;
}

.modal-content h3 {
    color: #1f2937;
    margin-top: 6px;
    margin-bottom: 16px;
}

.modal-content input {
    background: #f8fafc;
    color: #111827;
    border: 1.5px solid #d1d5db;
}

.modal-content input::placeholder {
    color: #6b7280;
}

.modal-content input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.modal-content .uid-wrapper .info-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.35);
}

.modal-content .uid-wrapper .info-btn:hover {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 10px 22px rgba(245, 87, 108, 0.38);
}

#forgotMsg,
#resetForgotMsg {
    margin-top: 10px;
    font-weight: 600;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Modal Buttons */
.modal-actions {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.modal-actions button {
    flex: 1;
}

.modal-actions #forgotSubmit,
.modal-actions #resetForgotSubmit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.modal-actions .cancel-btn {
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: #fff;
    box-shadow: 0 0 12px #ff4b2b;
}

.modal-actions .cancel-btn:hover {
    box-shadow: 0 0 20px #ff4b2b;
}

/* Close Button */
.close {
    float: right;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    color: #ff4b2b;
    transition: 0.3s ease;
}

.close:hover {
    text-shadow: 0 0 12px #ff4b2b;
}

/* Messages */
.success-msg {
    color: #4338ca;
    font-size: 14px;
    margin-top: 8px;
}

.error-msg {
    color: #ff4b2b;
    font-size: 14px;
    margin-top: 8px;
}

/* ✅ Verify toast */
.verify-toast {
    position: fixed;
    top: 18px;
    right: 18px;
    min-width: 240px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(102, 126, 234, 0.35);
    color: #1f2937;
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26), 0 0 0 2px rgba(255, 255, 255, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-10px);
    animation: toastIn 0.25s ease forwards;
}

.verify-toast.success { border-color: rgba(102, 126, 234, 0.6); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26), 0 0 16px rgba(102, 126, 234, 0.35); }
.verify-toast.error { border-color: rgba(255, 99, 99, 0.6); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 18px rgba(255, 99, 99, 0.45); }

.verify-toast .icon { font-size: 18px; }
.verify-toast .text { font-size: 14px; line-height: 1.4; }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}