@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style-type: none;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

a:hover {
    cursor: pointer;
    text-decoration: underline #999;
}

body {
    background-color: #fff;
    font-family: "Ubuntu", sans-serif;
}

header nav {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2.5rem;
    align-items: center;
    width: 100%;
}

#help-feed {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    color: black;
    margin-right: -25px;
}

.bx-help-circle {
    font-size: 20px;
    color: grey;
    margin-right: 5px;
}

#tt-logo {
    width: 120px;
    margin-left: -25px
}

main {
    margin-top: 10vh;
}

.login-container {
    max-width: 380px;
    margin: 0 auto;
    padding: 0 20px;
}

#login-heading {
    font-size: 32px;
    text-align: center;
    margin-top: -50px;
}

#login-sub-heading {
    font-size: 16px;
    text-align: center;
    color: grey;
    opacity: 60%;
    margin: 30px 0;
}

.btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.btn-icon {
    height: 24px;
    width: auto;
}

.btn {
    padding: 15px;
    font-size: 15px;
    font-weight: 500;
    background-color: transparent;
    border: 1px solid rgba(128, 128, 128, 0.5);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e0e0e0;
    text-decoration: none;
}

.btn i {
    flex-shrink: 0
}

.btn-txt {
    flex-grow: 1;
    text-align: center;
}

.btn-txt-user {
    flex-grow: 1;
    text-align: center;
    font-size: 14px;
    margin-left: 10px;
}

#hr-small {
    width: 50%;
    margin: 10px auto;
    opacity: 60%;
}

#hr-regular {
    opacity: 60%;
}

.sign-up-div {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-top: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid lightgray;
    background-color: rgba(245, 245, 245);
}

#sign-up {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
}

#sign-up span {
    color: rgb(255, 0, 85);
}

#view-logs-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #fe2c55; /* Rouge TikTok */
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(254, 44, 85, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#view-logs-btn:hover {
    background-color: #e02447;
    transform: translateY(-2px);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Voile noir */
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    background-color: #121212;
    border: 1px solid #2f2f2f;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    background-color: #1f1f1f;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2f2f2f;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
}

#close-modal-btn {
    background: none;
    border: none;
    color: #8a8a8a;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

#close-modal-btn:hover {
    color: #fe2c55;
}

.modal-body {
    padding: 20px;
    background-color: #0d0d0d;
}

#logs-output {
    margin: 0;
    background-color: #181818;
    border: 1px solid #252525;
    border-radius: 6px;
    padding: 15px;
    max-height: 350px;
    overflow-y: auto;
    color: #25ff25;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-all;
    text-align: left;
}

@media (max-width: 768px) {
    .sign-up-div {
        flex-direction: column;
        padding: 10px;
        height: auto;
    }

    #sign-up {
        margin-top: 4px;
    }
}

@media (max-width: 400px) {
    .txt-help {
        display: none;
    }

    #login-heading {
        font-size: 28px;
    }
}
