/* Login page — IBM Plex Sans typography */
body {
    font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    background-color: #f9fafb;
    color: #1a1a2e;
}

/* Centered layout */
.container {
    display: flex;
    justify-content: center;
    padding-top: 8vh;
}
.col-sm-6.col-md-4.col-md-offset-4 {
    width: 370px;
    max-width: 100%;
    float: none;
    margin: 0;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Circular avatar — 56px, red border, "EX" initials */
.login-avatar-wrapper {
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.login-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #D32D27;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #FFFFFF;
}
.login-avatar span {
    font-size: 18px;
    font-weight: 600;
    color: #D32D27;
    letter-spacing: -0.02em;
}

/* Title — 18px, semibold, tight tracking */
.login-title-main {
    font-weight: 600;
    color: #1a1a2e;
    margin-top: 0;
    margin-bottom: 2px;
    font-size: 18px;
    letter-spacing: -0.02em;
}

/* Subtitle — 12px, semibold, muted */
.login-subtitle {
    font-weight: 600;
    color: #6b7280;
    font-size: 12px;
    margin-top: 0;
    margin-bottom: 24px;
}

/* White card with subtle border and shadow */
.account-wall {
    width: 100%;
    margin-top: 0;
    padding: 24px;
    background-color: #FFFFFF;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Form layout */
.form-signin {
    max-width: 100%;
    padding: 0;
    margin: 0;
}
.form-signin .form-group {
    margin-bottom: 0;
}

/* Field labels — 12px, medium weight */
.login-label {
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
    margin-top: 16px;
    color: #1a1a2e;
    font-size: 12px;
}
.login-label:first-child {
    margin-top: 0;
}

/* Inputs — compact 32px height, rounded */
.form-signin .form-control {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    height: 32px;
    padding: 4px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #FFFFFF;
    color: #1a1a2e;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    margin-bottom: 0;
}
.form-signin .form-control:focus {
    z-index: 2;
    border-color: #94a3b8;
    box-shadow: 0 0 0 1px #94a3b8;
    outline: none;
}
.form-signin .form-control::placeholder {
    color: #9ca3af;
    font-weight: 500;
}
.form-signin input[type="text"] {
    margin-bottom: 0;
    border-radius: 4px;
}
.form-signin input[type="password"] {
    margin-bottom: 0;
    border-radius: 4px;
}

/* Primary button — #D32D27, 36px height, rounded */
.login-btn.btn {
    font-weight: 500;
    font-size: 14px;
    background-color: #D32D27;
    border-color: #D32D27;
    color: #FFFFFF;
    border-radius: 4px;
    height: 36px;
    padding: 0;
    margin-top: 20px;
    width: 100%;
    transition: background-color 0.15s ease;
    line-height: 36px;
}
.login-btn.btn:hover,
.login-btn.btn:focus {
    background-color: #DA4440;
    border-color: #DA4440;
    color: #FFFFFF;
}
.login-btn.btn:active,
.login-btn.btn.active {
    background-color: #D32D27;
    border-color: #D32D27;
    color: #FFFFFF;
}
.login-btn.btn[disabled],
.login-btn.btn.disabled {
    background-color: #E99693;
    border-color: #E99693;
    color: #FFFFFF;
    opacity: 1;
}

/* Error message */
.form-signin .help-block {
    font-size: 12px;
    color: #D32D27;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Helper text below card — small, muted */
.login-helper {
    font-weight: 400;
    margin-top: 20px;
    color: #6b7280;
    font-size: 11px;
}
.login-helper a {
    font-weight: 500;
    color: #1a1a2e;
    text-decoration: none;
}
.login-helper a:hover {
    text-decoration: underline;
}

/* Legacy classes kept for compatibility */
.login-title {
    color: #555;
    font-size: 18px;
    font-weight: 400;
    display: block;
}
.profile-img {
    width: 96px;
    height: 96px;
    margin: 0 auto 10px;
    display: block;
    border-radius: 50%;
}
.need-help {
    margin-top: 10px;
}
.new-account {
    display: block;
    margin-top: 10px;
}
.bottom_center_aligner {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
