/* Login — light, minimal, brand-focused */

body {
    margin: 0;
    min-height: 100vh;
    background-color: #f0f2f5;
    color: #1c1e21;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-page {
    width: 100%;
    max-width: 26rem;
}

.login-panel {
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    padding: 2rem 2rem 1.25rem;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 0, 0, 0.06);
}

.login-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo-link {
    display: inline-block;
    text-decoration: none;
}

.login-logo {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.login-alerts {
    margin-bottom: 1rem;
}

.login-form .form-group {
    margin-bottom: 1rem;
}

.login-field {
    position: relative;
}

.login-field-icon {
    position: absolute;
    left: 0.8125rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8b919a;
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 1;
}

.login-field:focus-within .login-field-icon {
    color: #2c5aa0;
}

.login-form .form-control::placeholder {
    color: #8b919a;
    opacity: 1;
}

.login-form .form-control {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.4;
    border: 1px solid #c9cdd4;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-form .form-control:hover {
    border-color: #aeb4bd;
}

.login-form .form-control:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.15);
}

.login-form .form-control.login-field-input {
    padding-left: 2.375rem;
}

.login-field--password .login-field-input {
    padding-right: 2.5rem;
}

.login-password-toggle {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #8b919a;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.login-password-toggle:hover {
    color: #5c6370;
    background-color: rgba(0, 0, 0, 0.05);
}

.login-field--password:focus-within .login-password-toggle {
    color: #2c5aa0;
}

.login-password-toggle:focus {
    outline: none;
}

.login-password-toggle:focus-visible {
    outline: 2px solid #2c5aa0;
    outline-offset: 1px;
}

.btn-login {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.6875rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: #25225f;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-login:hover {
    background: #1d1a4d;
}

.btn-login:active {
    background: #171534;
}

.alert {
    border-radius: 6px;
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
    display: none;
}

.alert.show {
    display: block;
}

.alert-danger {
    background-color: #fde8e8;
    border: 1px solid #f5c2c7;
    color: #842029;
}

.alert-success {
    background-color: #e8f5e9;
    border: 1px solid #a3d9a5;
    color: #1e5a20;
}
