:root {
    --ths-primary: #2c3e50;
    --ths-secondary: #5a6c7d;
    --ths-accent: #34495e;
    --ths-light-gray: #ecf0f1;
    --ths-dark-gray: #2c3e50;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--ths-light-gray);
    color: var(--ths-dark-gray);
}

.ths-header {
    background: radial-gradient(circle, #5a6c7d, #476685);
    /* background: linear-gradient(135deg, var(--ths-primary) 0%, var(--ths-secondary) 100%); */
    padding: 2rem 0;
    margin-bottom: 2rem;
    overflow-x: hidden;
    width: 100%;
}

.ths-logo {
    max-width: 333px;
    height: auto;
}

.btn-primary {
    background-color: var(--ths-primary);
    border-color: var(--ths-primary);
}

.btn-primary:hover {
    background-color: var(--ths-accent);
    border-color: var(--ths-accent);
}

.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: var(--ths-primary) !important;
    border-bottom: none;
}

.oauth2-login-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
}

.language-selector {
    /* display: flex; */
    align-items: center;
    gap: 0.5rem;
}

.language-icon {
    width: 16px;
    height: 16px;
}

.language-label {
    color: white;
    font-size: 0.9rem;
    margin: 0;
}

.language-select {
    width: auto;
    min-width: 120px;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.language-select:focus {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.2);
}

.language-select option {
    background-color: var(--ths-primary);
    color: white;
}

.form-control::placeholder {
    color: var(--ths-secondary);
    opacity: 0.7;
}

/* CSP-compliant classes for inline styles */
.svg-hidden {
    display: none;
}

.cooldown-hidden {
    display: none;
}

.account-avatar {
    width: 40px;
    height: 40px;
}

.progress-thin {
    height: 5px;
}

.progress-start {
    width: 0%;
}

.identity-avatar {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.tooltip-cursor {
    cursor: pointer;
}

@media (max-width: 768px) {
    .ths-header {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }

    .ths-logo {
        max-width: 222px;
    }

    .language-selector {
        gap: 0.25rem;
    }

    .language-select {
        min-width: 60px;
        font-size: 0.75rem;
    }

    .language-label {
        font-size: 0.75rem;
    }

    .oauth2-login-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .oauth2-login-title {
        font-size: 1.1rem;
    }
}