body {
    margin: 0;
    font-family: 'Roboto Mono', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #e0f7fa;
    color: #263238;
    flex-direction: column;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.card {
    position: relative;
    width: 100%;
    max-width: 550px;
    background: #fafafa;
    padding: 45px;
    border-radius: 30px;
    box-shadow: 10px 10px 0px #64b5f6, -10px -10px 0px #0288d1;
    text-align: center;
    border: 5px dashed #263238;
    transform: rotate(-2deg);
    animation: bounceIn 1s ease;
    z-index: 1;
}

@keyframes bounceIn {
    0% { transform: scale(0.5) rotate(-10deg); opacity: 0; }
    60% { transform: scale(1.1) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(-2deg); }
}

.floating-icons .icon {
    position: absolute;
    font-size: 2.5em;
    animation: floaty 4s ease-in-out infinite;
    pointer-events: none;
}

.floating-icons .icon:nth-child(1) { top: -20px; left: -20px; }
.floating-icons .icon:nth-child(2) { top: -30px; right: -25px; }
.floating-icons .icon:nth-child(3) { bottom: -20px; right: 15px; }

@keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-8px) rotate(-5deg); }
}

h1 {
    font-family: 'Caveat Brush', cursive;
    font-size: 2.8em;
    color: #03a9f4;
    margin: 0;
    text-shadow: 3px 3px 0px #263238;
    animation: wiggle 3s infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(1deg); }
}

.subtitle {
    font-size: 1.1em;
    color: #546e7a;
    margin-top: 10px;
}

.warning-box {
    background-color: #ffecb3;
    border-left: 6px solid #ff9800;
    padding: 15px 20px;
    margin-bottom: 25px;
    font-size: 0.95em;
    color: #5d4037;
    text-align: left;
    border-radius: 8px;
    border: 2px dashed #ffb74d;
}

.info-box {
    background-color: #e3f2fd;
    padding: 10px 20px;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 25px;
    border: 2px dashed #42a5f5;
    font-size: 0.9em;
    line-height: 1.4;
}

.legal-notice-box {
    background-color: #f1f8e9;
    border: 2px dashed #8bc34a;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 25px;
    font-size: 0.9em;
    color: #33691e;
}

.legal-notice-box strong {
    display: block;
    margin-bottom: 5px;
}

.login-toggle-button {
    background: #03a9f4;
    color: #fff;
    padding: 14px 30px;
    border: 3px solid #263238;
    font-family: 'Caveat Brush', cursive;
    font-size: 1.3em;
    border-radius: 12px;
    cursor: pointer;
    text-shadow: 2px 2px 0 #263238;
    transition: all 0.2s ease;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 5px 5px 0px #64b5f6;
    transform: rotate(2deg);
}

.login-toggle-button:hover {
    transform: translate(2px, 2px) rotate(2deg);
    box-shadow: 3px 3px 0px #64b5f6;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s forwards;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fafafa;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 10px 10px 0px #64b5f6, -10px -10px 0px #0288d1;
    border: 5px dashed #263238;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideIn 0.5s forwards;
}

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

.close-button {
    color: #263238;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 1px 1px 0 #e0f7fa;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.close-button:hover {
    transform: rotate(135deg);
}

.modal-form-header {
    font-family: 'Caveat Brush', cursive;
    font-size: 2em;
    color: #03a9f4;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px #263238;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form input {
    width: 100%;
    padding: 14px;
    font-size: 1.1em;
    font-family: 'Roboto Mono', monospace;
    border: 3px dashed #263238;
    border-radius: 10px;
    background-color: #fefefe;
    color: #263238;
    transition: all 0.2s ease;
}

.login-form input:focus {
    outline: none;
    background-color: #f0f8ff;
    transform: scale(1.02);
    box-shadow: 0 0 10px #b3e5fc;
}

.login-form button {
    background: #0288d1;
    color: #fff;
    padding: 14px 30px;
    border: 3px solid #263238;
    font-family: 'Caveat Brush', cursive;
    font-size: 1.3em;
    border-radius: 12px;
    cursor: pointer;
    text-shadow: 2px 2px 0 #263238;
    transition: all 0.2s ease;
    box-shadow: 5px 5px 0px #03a9f4;
    transform: rotate(-2deg);
    margin-top: 10px;
}

.login-form button:hover {
    transform: translate(2px, 2px) rotate(-2deg);
    box-shadow: 3px 3px 0px #03a9f4;
}

.status-message {
    margin-top: 15px;
    font-weight: 700;
}

.error-message {
    color: #d32f2f;
    animation: wiggleShake 0.5s;
}

@keyframes wiggleShake {
    0% { transform: rotate(0); }
    25% { transform: rotate(2deg); }
    50% { transform: rotate(-2deg); }
    75% { transform: rotate(1deg); }
    100% { transform: rotate(0); }
}

.shake {
    animation: wiggleShake 0.5s;
}

.legal-contact {
    margin-top: 25px;
    font-size: 0.9em;
    color: #546e7a;
}

.legal-contact a {
    color: #03a9f4;
    text-decoration: underline;
    font-weight: 700;
}