:root {
    --bg-page: #edf4ff;
    --bg-card: #ffffff;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #1f2937;
    --muted: #64748b;
    --border: #dfe7f5;
    --warning: #d97706;
    --danger: #dc2626;
    --success: #1f9d61;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #edf4ff 0%, #f8fbff 100%);
    color: var(--text);
    line-height: 1.6;
}

main {
    display: block;
}

.login-wrapper,
.change-wrapper {
    max-width: 420px;
    width: min(92vw, 420px);
    margin: 64px auto;
    background: var(--bg-card);
    padding: 32px 28px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.login-wrapper h1,
.change-wrapper h1 {
    text-align: center;
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 2vw, 1.8rem);
    color: var(--text);
}

.login-wrapper p,
.subtitle {
    text-align: center;
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 0.92rem;
}

.tenant-name {
    text-align: center;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.login-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}

.logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.company-logo,
.tenant-logo {
    max-height: 42px;
    max-width: 140px;
    object-fit: contain;
}

.logos-separator {
    color: #9ca3af;
    font-size: 1.25rem;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.96rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

.btn {
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 0.96rem;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.error,
.alert-warning,
.alert-success {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    text-align: center;
}

.error {
    background: #fff1f2;
    color: #a61f1f;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fff7e8;
    color: #92400e;
    border: 1px solid #fcd9a8;
}

.alert-success {
    background: #eafaf2;
    color: #17613d;
    border: 1px solid #bfe8cf;
}

.strength-bar {
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    margin-top: 8px;
    overflow: hidden;
}

.strength-bar > span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--primary);
    border-radius: inherit;
    transition: width 0.25s ease, background 0.25s ease;
}

.strength-label {
    min-height: 14px;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 6px;
}

@media (max-width: 520px) {
    .login-wrapper,
    .change-wrapper {
        margin: 32px auto;
        padding: 24px 18px;
    }
}
