html,
body {
    height: 100%;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

#icon-intro {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    z-index: 9999;
}

#icon-intro img {
    height: auto;
    transform: scale(0);
    animation: introAnim 1.2s ease-out forwards;
}


@keyframes introAnim {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.4);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

.hide-intro {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}


body {
    background-image: url("../bgimage2.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    transition: background 0.3s, color 0.3s;
}

body.dark-mode {
    background-image: none;
    background-color: #121212;
    color: #ffffff;
}

.dark-mode .card {
    background-color: #1e1e1e;
    border: 1px solid #ffffff;
    color: #ffffff;
}

.dark-mode label,
.dark-mode h2,
.dark-mode .form-check-label,
.dark-mode p {
    color: #ffffff;
}

.dark-mode .form-control {
    background-color: #333;
    color: #fff;
    border-color: #555;
}

.dark-mode .form-control::placeholder {
    color: #bbb;
}

.dark-mode .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.dark-mode a {
    color: #4dabf7;
}

.top-header {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    background-color: transparent;
    z-index: 999;
    height: 80px;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.top-logo {
    height: 60px;
    object-fit: contain;
}

.top-title {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    flex-grow: 1;
}

#toggleDarkMode {
    background: none;
    border: none;
    font-size: 1.2rem;
}

.page-content {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    width: 100%;
    max-width: 400px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

#caps-warning {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffdddd;
    color: #a00;
    padding: 10px 20px;
    border: 1px solid #a00;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    z-index: 9999;
}

.site-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 15px 0;
    font-size: 14px;
    z-index: 1000;
}

@media (max-width: 576px) {
    .top-bar {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .top-title {
        font-size: 1.4rem;
    }

    .top-logo {
        height: 45px;
    }

    .page-content {
        padding-top: 60px;
    }
}