/* Minimal dashboard login, mobile first */

*,
*::before,
*::after {
 box-sizing: border-box;
}

html,
body {
 height: 100%;
 margin: 0;
 overflow: hidden;
}

.login-screen {
 height: 100dvh;
 max-height: 100dvh;
 display: flex;
 align-items: center;
 justify-content: center;
 padding: 1.5rem;
 padding-top: max(1.5rem, env(safe-area-inset-top));
 padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
 overflow: hidden;
 background: #f4f4f6;
 font-family: 'Inter', system-ui, sans-serif;
}

.login-form {
 width: min(100%, 300px);
 display: flex;
 flex-direction: column;
 align-items: stretch;
 gap: 0.75rem;
}

.login-input,
.login-submit {
 display: block;
 width: 100%;
 margin: 0;
 padding: 1rem 1.125rem;
 font-family: inherit;
 font-size: 1rem;
 line-height: 1.25;
 border-radius: 12px;
}

.login-input {
 color: #111114;
 background: #ffffff;
 border: 1px solid #e2e2e8;
 outline: none;
 transition: border-color 0.15s ease, box-shadow 0.15s ease;
 -webkit-appearance: none;
 appearance: none;
}

.login-input::placeholder {
 color: #9b9ba4;
}

.login-input:focus {
 border-color: #111114;
 box-shadow: 0 0 0 3px rgba(17, 17, 20, 0.08);
}

.login-submit {
 font-weight: 600;
 color: #ffffff;
 background: #111114;
 border: 1px solid #111114;
 cursor: pointer;
 transition: opacity 0.15s ease;
}

.login-submit:hover:not(:disabled) {
 opacity: 0.92;
}

.login-submit:disabled {
 opacity: 0.55;
 cursor: not-allowed;
}

.login-error {
 margin: 0;
 font-size: 0.8125rem;
 color: #c62828;
 text-align: center;
 min-height: 1.25rem;
 opacity: 0;
 transition: opacity 0.15s ease;
}

.login-error--visible {
 opacity: 1;
}
