*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    color: #00ff00;
    background: #000 url("bg.gif") center / cover no-repeat fixed;
}

#falling-crottes {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.falling-crotte {
    position: absolute;
    top: -60px;
    will-change: transform;
}

.falling-crotte img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.page {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.card {
    width: 100%;
    max-width: 400px;
    padding: 1.5rem 1.75rem;
    background: rgba(0, 0, 0, 0.82);
    border: 4px solid #ff00ff;
    outline: 2px solid #00ffff;
    outline-offset: 4px;
    box-shadow: 0 0 24px rgba(255, 0, 255, 0.4);
}

.logo {
    display: block;
    margin: 0 auto 1rem;
    object-fit: contain;
    border: 3px solid #ffff00;
}

h1 {
    margin: 0 0 0.25rem;
    font-size: 1.75rem;
    text-align: center;
    color: #ffff00;
    text-shadow: 2px 2px #ff00ff;
    letter-spacing: 1px;
}

.subtitle {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    color: #00ffff;
    text-align: center;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #ff66ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"] {
    padding: 8px 10px;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    font-size: 1rem;
    color: #00ff00;
    background: #000;
    border: 2px solid #00ff00;
    outline: none;
}

input[type="text"]::placeholder {
    color: #008800;
}

input[type="text"]:focus {
    border-color: #ffff00;
    color: #ffff00;
    box-shadow: 0 0 8px rgba(255, 255, 0, 0.5);
}

.upload {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 140px;
    background: #000;
    border: 2px dashed #00ffff;
    cursor: pointer;
    overflow: hidden;
}

.upload:hover,
.upload.dragover {
    border-color: #ffff00;
    background: rgba(255, 255, 0, 0.08);
}

.upload-placeholder {
    padding: 1rem;
    font-size: 0.9rem;
    color: #00ffff;
    text-align: center;
    text-decoration: underline;
    pointer-events: none;
}

.photo-preview {
    width: 100%;
    min-height: 140px;
    object-fit: cover;
    border: 2px solid #ff00ff;
}

.btn {
    padding: 10px 20px;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    font-size: 1.1rem;
    font-weight: bold;
    color: #000;
    background: #ffff00;
    border: 3px solid #ff0000;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover:not(:disabled) {
    background: #ff00ff;
    color: #ffff00;
    border-color: #ffff00;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.feedback {
    margin: 0;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
}

.feedback--error {
    color: #ff0000;
    text-shadow: 0 0 6px #ff0000;
}

.feedback--success {
    color: #00ff00;
    text-shadow: 0 0 6px #00ff00;
}
