/* style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    background: #080808;
    color: #f5f5f5;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

#App {
    min-height: 100vh;
}

#LoadingPage,
#AuthPage,
#ProfilePage,
#ErrorPage {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

#LoadingContainer,
#AuthContainer,
#ProfileContainer,
#ErrorContainer {
    width: 100%;
    max-width: 420px;
    padding: 36px;
    background: #111111;
    border: 1px solid #292929;
    border-radius: 14px;
}

#LoadingContainer,
#ErrorContainer,
#ProfileContainer {
    text-align: center;
}

#LoadingContainer h1 {
    margin-bottom: 12px;
    font-size: 32px;
}

#LoadingContainer p,
#ErrorDescription {
    color: #999999;
    font-size: 14px;
}

#LoadingIndicator {
    width: 28px;
    height: 28px;
    margin: 24px auto 0;
    border: 3px solid #333333;
    border-top-color: #eeeeee;
    border-radius: 50%;
    animation: LoadingSpin 0.8s linear infinite;
}

@keyframes LoadingSpin {
    to {
        transform: rotate(360deg);
    }
}

#AuthHeader {
    text-align: center;
    margin-bottom: 30px;
}

#AuthHeader h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

#AuthSubtitle {
    color: #999999;
    font-size: 14px;
}

#AuthTabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

#AuthTabs button {
    flex: 1;
    padding: 12px;
    border: 1px solid #333333;
    border-radius: 8px;
    background: #181818;
    color: #aaaaaa;
}

#AuthTabs button.active {
    background: #292929;
    color: #ffffff;
    border-color: #555555;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

form label {
    color: #cccccc;
    font-size: 13px;
}

form input {
    width: 100%;
    padding: 13px;
    background: #080808;
    border: 1px solid #333333;
    border-radius: 8px;
    color: #ffffff;
    outline: none;
    margin-bottom: 8px;
}

form input:focus {
    border-color: #777777;
}

form button,
#ApplicationSignOut,
#ProfileHome,
#RetryButton,
#ErrorHomeButton {
    width: 100%;
    padding: 13px;
    background: #eeeeee;
    border: none;
    border-radius: 8px;
    color: #111111;
    font-weight: 600;
}

form button:hover,
#ApplicationSignOut:hover,
#ProfileHome:hover,
#RetryButton:hover,
#ErrorHomeButton:hover {
    background: #cccccc;
}

form button[type="button"] {
    background: #202020;
    border: 1px solid #383838;
    color: #ffffff;
}

form button[type="button"]:hover {
    background: #303030;
}

#ForgotPassword {
    background: transparent !important;
    border: none !important;
    color: #aaaaaa !important;
    font-size: 13px;
}

#ForgotPassword:hover {
    color: #ffffff !important;
    background: transparent !important;
}

#AuthMessage {
    min-height: 20px;
    margin-top: 18px;
    color: #cccccc;
    font-size: 13px;
    text-align: center;
    overflow-wrap: anywhere;
}

#ApplicationPage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#ApplicationHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 28px;
    background: #111111;
    border-bottom: 1px solid #292929;
}

#ApplicationHeader h1 {
    font-size: 24px;
}

#ApplicationNavigation {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#ApplicationNavigation button {
    padding: 10px 14px;
    background: #202020;
    border: 1px solid #383838;
    border-radius: 8px;
    color: #ffffff;
}

#ApplicationNavigation button:hover {
    background: #303030;
}

#ApplicationContent {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
    flex: 1;
}

#ApplicationTitle {
    margin-bottom: 12px;
}

#ApplicationDescription,
#ApplicationRoute,
#ApplicationUser {
    margin-top: 12px;
    color: #aaaaaa;
    overflow-wrap: anywhere;
}

#ApplicationSignOut {
    width: auto;
    align-self: flex-start;
    margin: 24px;
    padding: 12px 24px;
}

#ProfileContainer h1 {
    margin-bottom: 10px;
}

#ProfileUsername,
#ProfileBio,
#ProfileUserId {
    margin-top: 12px;
    color: #aaaaaa;
    overflow-wrap: anywhere;
}

#ProfileHome {
    margin-top: 24px;
}

#ErrorTitle {
    margin-bottom: 12px;
}

#RetryButton,
#ErrorHomeButton {
    margin-top: 18px;
}

#ErrorHomeButton {
    background: #202020;
    border: 1px solid #383838;
    color: #ffffff;
}

@media (max-width: 600px) {
    #AuthContainer,
    #ProfileContainer,
    #LoadingContainer,
    #ErrorContainer {
        padding: 24px;
    }

    #ApplicationHeader {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    #ApplicationNavigation {
        width: 100%;
    }

    #ApplicationNavigation button {
        flex: 1;
    }
}