* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    padding: 1rem;
}

.login-container {
    max-width: 400px;
    width: 100%;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
}

.brand-logo {
    max-height: 48px;
    max-width: 220px;
}

.brand-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px dashed var(--brand-border, #cdd6e1);
    border-radius: 8px;
    color: var(--brand-primary, #1c37a0);
    font-weight: 700;
    background: rgba(255,255,255,0.7);
}

.logo h1 {
    color: var(--brand-primary);
    font-size: 1.75rem;
    font-weight: 700;
}

.btn-oauth {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem;
    font-weight: 500;
}

.btn-google {
    background-color: #4285f4;
    border-color: #4285f4;
    color: white;
}

.btn-google:hover {
    background-color: #357ae8;
    border-color: #357ae8;
}

.btn-entra {
    background-color: #0078d4;
    border-color: #0078d4;
    color: white;
}

.btn-entra:hover {
    background-color: #006bbd;
    border-color: #006bbd;
}

.language-switcher {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
    position: relative;
}

.language-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #dee2e6;
    background: white;
    color: #212529;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-trigger:hover {
    background: #f8f9fa;
}

.language-active-label {
    font-size: 0.95rem;
}

.language-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 0.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: none;
    min-width: 190px;
    z-index: 5;
}

.language-switcher.open .language-menu {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    border: none;
    background: transparent;
    color: #212529;
    width: 100%;
    text-align: left;
    border-radius: 10px;
    cursor: pointer;
}

.language-option:hover {
    background: #e9ecef;
}

.language-option[aria-selected="true"] {
    background: var(--brand-primary);
    color: white;
}

.flag-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
