.form-label {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.05em;
    font-weight: 600;
    font-size: 16px;
    color: #9b9d9e;
}

.change-language > button {
    border: 1px solid #9b9d9e;
    background-color: rgb(33 37 41);
    border-radius: 5px;
    line-height: 0px;
}

.change-language > button > img {
    width: 25px;
    height: 25px;
}

.change-language > form {
    display: flex;
    gap: 5px;
}

.change-language > form > img {
    width: 20px;
    height: 20px;
}

.list-group-item {
    gap: 10px;
    padding-top:10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.list-group-item > a {
    text-decoration: none;
    margin:0;
    padding:0;
    color: #6c757d
}

.list-group-item > form > button {
    text-decoration: none;
    color: #6c757d;
    margin:0;
    padding:0;
}

.card-custom {
    background: #e5e7eb;
    border-radius: 6px;
    padding: 2rem;
}

a {
    text-decoration: none;
}

.profile a {
    text-decoration: none;
    color: #6c757d;
    margin:0;
    padding:0;
}

.navbar-nav .nav-link:hover {
    color: #9b9d9e;
}

.navbar-nav .nav-link:active {
    color: #fff;
}

.form-wrapper {
    position: relative;
    min-height: 400px;
    display: flex;
    width: 200%;
    transition: transform 0.5s ease;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.form-box {
    width: 50%;
    padding: 30px;
    flex-shrink: 0;
}

.border {
    border-radius: 0.375rem;
}

.auth-container[data-panel="login"] .form-wrapper {
    transform: translateX(0);
}

.auth-container[data-panel="signup"] .form-wrapper {
    transform: translateX(-50%);
}

/* Single-panel auth pages: full-width form box */
.auth-container > .form-box {
    width: 100%;
}

.switch {
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
}

#progress-bar {
    width: 0;
    height: 3px;
    background-color: #007bff;
    transition: width 0.4s;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: none;
}

/* === PWA banners === */
.offline-banner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px;
    text-align: center;
    background: #ffc107;
    color: #212529;
    z-index: 10000;
}

.install-banner {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10001;
}

/* === Mobile bottom nav === */
.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    background: #212529;
    border-top: 1px solid #343a40;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1030;
}

.mobile-bottom-nav .mobile-nav-item {
    flex: 1 1 0;
    text-align: center;
    font-size: 12px;
    color: #fff;
    cursor: pointer;
}

.mobile-bottom-nav .mobile-nav-item i {
    display: block;
    font-size: 18px;
    margin-bottom: 2px;
}

.mobile-bottom-nav .mobile-nav-item:hover,
.mobile-bottom-nav .mobile-nav-item:focus {
    color: #6ea8fe;
}

.errorlist {
    list-style: none;
    padding: 0;
    margin-top: 0.25rem;
    color: #dc3545;
    font-size: 0.875rem;
}

.errorlist li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.errorlist li::before {
    content: "⚠";
    font-size: 0.8rem;
}

/* Keep the bottom nav from covering page content and the install banner. */
@media (max-width: 575.98px) {
    body {
        padding-bottom: 72px;
    }

    .install-banner {
        bottom: 68px;
    }
}