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

@font-face {
    font-family: 'SpaceMono';
    src: url('../fonts/SpaceMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background: #0a0a0a;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'SpaceMono', monospace;
}

.slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
}

.overlay img {
    max-width: 180px;
    height: auto;
    margin-bottom: 12px;
}

.overlay h1 {
    color: #fff;
    font-size: 28px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-text {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.4;
    opacity: 0.9;
}

.flash,
.field-error {
    color: #fff;
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.4;
    max-width: 100%;
}

.field-error {
    color: #ffb3b3;
}

.form {
    display: flex;
    width: 100%;
    gap: 8px;
}

.form input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 4px;
    outline: none;
    font-family: inherit;
}

.form button {
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    background: #fff;
    color: #000;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}

.form button:hover {
    opacity: 0.8;
}

.dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition:
        background 0.3s,
        transform 0.3s;
    padding: 0;
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
}
