/* Pantalla de acceso. Colores de marca en las variables de :root. */
:root {
    --login-bg: #f3f5f9;
    --login-card: #ffffff;
    --login-text: #1d2433;
    --login-muted: #6b7385;
    --login-border: #d9dee8;
    --login-accent: #2453d6;
    --login-accent-hover: #1c43b0;
    --login-error-bg: #fdecec;
    --login-error-text: #b42318;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--login-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    color: var(--login-text);
}

.login-page {
    min-height: 100vh;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--login-card);
    border: 1px solid var(--login-border);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(29, 36, 51, 0.08);
    padding: 36px 32px 24px;
    box-sizing: border-box;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.login-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--login-accent);
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo {
    max-height: 44px;
    max-width: 200px;
}

.login-brand-name {
    font-weight: 700;
    font-size: 16px;
}

.login-brand-sub {
    color: var(--login-muted);
    font-size: 13px;
}

.login-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-label {
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 6px;
}

.login-input {
    height: 42px;
    padding: 0 12px;
    margin-bottom: 16px;
    border: 1px solid var(--login-border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--login-text);
    background: #fff;
    box-sizing: border-box;
    width: 100%;
}

.login-input:focus {
    outline: none;
    border-color: var(--login-accent);
    box-shadow: 0 0 0 3px rgba(36, 83, 214, 0.15);
}

.login-button {
    height: 44px;
    margin-top: 4px;
    border: 0;
    border-radius: 8px;
    background: var(--login-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.login-button:hover {
    background: var(--login-accent-hover);
}

.login-error {
    background: var(--login-error-bg);
    color: var(--login-error-text);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--login-border);
    font-size: 13px;
    color: var(--login-muted);
}

.login-help {
    color: var(--login-accent);
    text-decoration: none;
}

.login-help:hover {
    text-decoration: underline;
}
