/* Auth pages shared styles */
:root {
    --primary-color: #2d2d2d;
}

@font-face {
    font-family: 'windsorregular';
    src: url('../fonts/windsor_regular-webfont.woff2') format('woff2'),
         url('../fonts/windsor_regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;


}

body {
    background: #FAFAFA;
    background: linear-gradient(168deg, #FAFAFA 7%, #F0F0F0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    overflow: hidden;
    max-width: 420px;
    width: 100%;
}

.login-card h1 { font-size: 1.4rem; font-weight:700; text-align:center; margin:0.2rem 0 2rem 0; font-family: 'windsorregular', 'Arial Narrow', Arial, sans-serif;}

.login-logo {
    padding: 2.5rem 2rem 0.5rem;
    text-align: center;
}

.login-logo img {
    height: 32px;
    width: auto;
}

.login-body {
    padding: 1.5rem 2rem 2rem;
}

.form-floating {
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: #2d2d2d;
    box-shadow: 0 0 0 0.2rem rgba(45, 45, 45, 0.15);
}

.btn-login {
    background: #2d2d2d;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    width: 100%;
    margin-top: 1rem;
    color: #fff;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.btn-login:hover {
    background: #1a1a1a;
    color: #fff;
}

.alert {
    border-radius: 8px;
    border: none;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: #2d2d2d;
}

.success-icon {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

/* 2FA code digit inputs */
.twofa-code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 1.5rem 0;
}

input[type="text"].twofa-digit {
    width: 50px;
    height: 60px;
    padding: 0;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 60px;
    color: #2d2d2d;
    background-color: #f8f9fa;
    border: 2px solid #e1e4e8;
    border-radius: 12px;
    outline: none;
    box-shadow: none;
    transition: all 0.2s ease;
    caret-color: transparent;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    box-sizing: border-box;
}

input[type="text"].twofa-digit::-webkit-outer-spin-button,
input[type="text"].twofa-digit::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="text"].twofa-digit:focus {
    background-color: #fff;
    border-color: #2d2d2d;
    box-shadow: 0 0 0 3px rgba(45, 45, 45, 0.12);
    transform: translateY(-2px);
}

input[type="text"].twofa-digit.has-value {
    background-color: #fff;
    border-color: #2d2d2d;
}

input[type="text"].twofa-digit:disabled {
    background-color: #f0f0f0;
    border-color: #e1e4e8;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
