/* THE WORST LOGIN PAGE STYLES EVER */

* {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><text y="20" font-size="20">🔑</text></svg>'), auto;
}

body {
    background: repeating-linear-gradient(
        45deg,
        #ff0000,
        #ff0000 10px,
        #00ff00 10px,
        #00ff00 20px,
        #0000ff 20px,
        #0000ff 30px
    );
    animation: rotate-bg 5s linear infinite, shake 0.3s infinite;
    font-family: 'Comic Sans MS', cursive;
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
}

@keyframes rotate-bg {
    from { filter: hue-rotate(0deg); }
    to { filter: hue-rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px) rotate(-1deg); }
    75% { transform: translateX(3px) rotate(1deg); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes rainbow {
    0% { color: red; }
    20% { color: orange; }
    40% { color: yellow; }
    60% { color: green; }
    80% { color: blue; }
    100% { color: purple; }
}

.login-container {
    max-width: 600px;
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border: 20px double magenta;
    box-shadow: 0 0 100px rgba(255, 0, 255, 0.8);
    animation: pulse 2s infinite;
}

h1 {
    text-align: center;
    font-size: 50px;
    color: red;
    text-shadow: 5px 5px lime, -5px -5px cyan;
    animation: spin 3s linear infinite, rainbow 2s linear infinite;
    margin-bottom: 20px;
}

marquee {
    background: yellow;
    color: red;
    font-size: 30px;
    font-weight: bold;
    padding: 10px;
    border: 5px dashed blue;
    margin-bottom: 20px;
}

.security-badge {
    text-align: center;
    background: linear-gradient(45deg, lime, cyan, magenta);
    padding: 20px;
    margin: 20px 0;
    border: 5px solid black;
    animation: pulse 1s infinite;
}

.security-badge img {
    animation: spin 2s linear infinite;
}

.security-badge p {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
}

.blink {
    animation: blink 0.5s infinite;
}

.form-group {
    margin-bottom: 25px;
    animation: shake 2s infinite;
}

label {
    display: block;
    font-size: 16px;
    color: purple;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 2px 2px yellow;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-family: 'Comic Sans MS';
    border: 5px ridge red;
    background: linear-gradient(45deg, #fff, #ffff99);
    color: blue;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border: 5px solid lime;
    animation: spin 1s linear infinite;
    transform-origin: center;
}

.error {
    display: block;
    color: red;
    font-size: 14px;
    margin-top: 5px;
    animation: blink 0.3s infinite;
    font-weight: bold;
}

#passwordStrength {
    margin-top: 10px;
    padding: 10px;
    font-weight: bold;
    border: 3px dashed black;
}

.toggle-btn {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    background: orange;
    border: 3px solid black;
    cursor: pointer;
    animation: pulse 1s infinite;
}

.captcha-container {
    background: cyan;
    padding: 20px;
    border: 10px groove magenta;
    margin: 20px 0;
    animation: shake 1s infinite;
}

.captcha-container p {
    font-size: 20px;
    font-weight: bold;
    color: red;
    text-align: center;
}

.captcha-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.captcha-box {
    width: 100%;
    aspect-ratio: 1;
    border: 3px solid black;
    cursor: pointer;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: transform 0.1s;
}

.captcha-box:hover {
    transform: scale(1.1) rotate(5deg);
}

.captcha-box.selected {
    background: lime;
    border: 5px solid red;
    animation: spin 1s linear infinite;
}

.refresh-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background: yellow;
    border: 5px solid red;
    cursor: pointer;
    font-weight: bold;
    animation: blink 1s infinite;
}

input[type="checkbox"] {
    transform: scale(2);
    margin-right: 10px;
    cursor: pointer;
}

.loading-container {
    margin: 20px 0;
    padding: 20px;
    background: black;
    color: lime;
    border: 5px solid lime;
}

.loading-text {
    font-size: 24px;
    text-align: center;
    animation: blink 0.5s infinite;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #333;
    border: 2px solid lime;
    margin: 15px 0;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, red, yellow, green);
    width: 0%;
    transition: width 0.1s;
}

#loadingStatus {
    text-align: center;
    font-size: 16px;
    margin-top: 10px;
}

.submit-btn {
    width: 100%;
    padding: 25px;
    font-size: 30px;
    font-weight: bold;
    background: linear-gradient(45deg, red, orange, yellow, green, blue, purple);
    background-size: 400% 400%;
    color: white;
    border: 10px outset gold;
    cursor: pointer;
    font-family: 'Comic Sans MS';
    text-shadow: 3px 3px black;
    animation: gradient 2s ease infinite, pulse 1s infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.submit-btn:hover {
    animation: spin 0.5s linear infinite, gradient 2s ease infinite;
}

.helper-links {
    text-align: center;
    margin: 20px 0;
    font-size: 16px;
}

.helper-links a {
    color: blue;
    text-decoration: underline wavy red;
    animation: rainbow 1s infinite;
}

.security-info {
    background: yellow;
    border: 5px dashed red;
    padding: 10px;
    margin: 20px 0;
    height: 100px;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: red;
    color: white;
    border: 5px solid black;
}

.footer p {
    margin: 10px 0;
    font-size: 18px;
    font-weight: bold;
}

#attempts {
    font-size: 30px;
    color: yellow;
    animation: pulse 0.5s infinite;
}

/* Annoying floating elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

a {
    animation: float 2s infinite;
    display: inline-block;
}
