body {
    font-family: 'Segoe UI', sans-serif;
    background: #0f172a;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
a {
    color: #58a6ff;
    text-decoration: none;
}
/* Animated border ------------------------------------------------- */
.login-box, .dashboard {
    border: 2px solid red;
    animation: mymove 2s infinite;
}
@keyframes mymove {
    50% { border-color: green; }
}
/* Login box ------------------------------------------------- */
.login-box, .dashboard {
    background: #1e293b;
    padding: 30px;
    border-radius: 12px;
    width: 300px;
    text-align: center;
    text-decoration: none;
}
input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    background: #334155;
    color: white;
}
button {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    background-color: #2ea043;
    color: white;
    cursor: pointer;
}
.cta {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: #2ea043;
    color: white;
    border-radius: 8px;
    text-decoration: none;
}
/* Terms row ------------------------------------------------- */
.terms-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px auto;
    font-size: 13px;
    color: #94a3b8;
    width: 90%;
    text-align: left;
}
.terms-row input[type="checkbox"] {
    width: auto;
    margin: 0;
    padding: 0;
    accent-color: #2ea043;
    flex-shrink: 0;
}
.terms-row a {
    color: #58a6ff;
    cursor: pointer;
    text-decoration: underline;
}
/* Modal ------------------------------------------------- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-overlay.active {
    display: flex;
}
.modal-box {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    overflow-y:auto;
    width: 90%;
    max-height: 70vh;
    color: #94a3b8;
    text-align: left;
}
.modal-box h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}
.modal-box p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 12px;
}
.modal-box strong {
    color: #cbd5e1;
}
.modal-close {
    display: block;
    margin-top: 20px;
    background: #2ea043;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
}
.modal-close:hover {
    background: #238a35;
}
/* Error message ------------------------------------------------- */
.error {
    color: #f87171;
    font-size: 13px;
    margin-bottom: 10px;
}
/* Responsive ------------------------------------------------- */
@media (max-width: 600px) {
    .login-box {
        background: #1e293b;
        padding: 30px;
        border-radius: 12px;
        width: 90%;
        height: 450px;
        text-align: center;
        text-decoration: none;
    }
    input {
        width: 90%;
        font-size: 1.1rem;
        padding: 14px;
    }
}
