/* Login (auth/login.blade.php): brand on the left and the form on the right; on a phone the brand goes on top */

.wd-login { display: flex; min-height: 100vh; background: #f3f6f9; font-family: Poppins, Helvetica, sans-serif; }

/* Brand */
.wd-login-brand { position: relative; flex: 0 0 46%; display: flex; background-color: #1a1530; background-size: cover; background-position: center; color: #fff; overflow: hidden; }
.wd-login-brand::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(20, 16, 44, .35) 0%, rgba(20, 16, 44, .8) 100%); }
.wd-login-brand-inner { position: relative; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 520px; margin: 0 auto; padding: 3rem 3rem 2rem; }
/* The logo and the copy take the free space: the content stays in the middle and the copy at the bottom */
.wd-login-logo { display: flex; align-items: center; gap: 1rem; margin-top: auto; margin-bottom: 2.25rem; }
.wd-login-logo-icon { width: 64px; height: 64px; object-fit: contain; }
.wd-login-logo-text { height: 92px; width: 164px; object-fit: cover; }
.wd-login-title { font-size: 1.85rem; font-weight: 600; line-height: 1.3; color: #fff; margin-bottom: 2rem; }
.wd-login-features { list-style: none; padding: 0; margin: 0 0 2.5rem; }
.wd-login-features li { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; color: rgba(255, 255, 255, .72); font-size: .95rem; }
.wd-login-features b { display: block; color: #fff; font-weight: 600; font-size: 1rem; }
.wd-login-feature-icon { flex: 0 0 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; border-radius: .75rem; background: rgba(255, 255, 255, .1); color: #c5a632; font-size: 1.25rem; }
.wd-login-copy { margin-top: auto; padding-top: 1rem; font-size: .85rem; color: rgba(255, 255, 255, .45); }

/* Form */
.wd-login-main { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem; }
.wd-login-card { width: 100%; max-width: 420px; }
.wd-login-heading { font-size: 1.75rem; font-weight: 600; color: #181c32; margin-bottom: .35rem; }
.wd-login-lead { color: #7e8299; font-size: 1rem; margin-bottom: 1.75rem; }

.wd-login-alert { display: flex; align-items: flex-start; gap: .65rem; padding: .85rem 1rem; margin-bottom: 1.25rem; border-radius: .65rem; font-size: .95rem; line-height: 1.45; }
.wd-login-alert i { font-size: 1.1rem; margin-top: .1rem; }
.wd-login-alert.is-bad { background: #ffe2e5; color: #a0283b; }
.wd-login-alert.is-bad i { color: #f64e60; }
.wd-login-alert.is-warn { background: #fff4de; color: #8a5a00; }
.wd-login-alert.is-warn i { color: #ffa800; }

.wd-login-field { margin-bottom: 1.25rem; }
.wd-login-field label { display: block; font-weight: 500; color: #3f4254; margin-bottom: .45rem; }
.wd-login-input { position: relative; display: flex; align-items: center; }
.wd-login-input > i { position: absolute; left: 1rem; color: #b5b5c3; font-size: 1.1rem; pointer-events: none; }
.wd-login-input input { width: 100%; height: 3.25rem; padding: 0 1rem 0 2.85rem; border: 1px solid #e4e6ef; border-radius: .65rem; background: #fff; color: #181c32; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.wd-login-input input::placeholder { color: #b5b5c3; }
.wd-login-input input:focus { outline: none; border-color: #3699ff; box-shadow: 0 0 0 3px rgba(54, 153, 255, .15); }
.wd-login-input input:focus + .wd-login-eye, .wd-login-input:focus-within > i { color: #3699ff; }
.wd-login-input input[type="password"], .wd-login-input input[data-password] { padding-right: 3.25rem; }
.wd-login-eye { position: absolute; right: .35rem; width: 2.6rem; height: 2.6rem; border: 0; border-radius: .5rem; background: transparent; color: #7e8299; font-size: 1.35rem; }
.wd-login-eye:hover { background: #f3f6f9; color: #3699ff; }
.wd-login-eye:focus { outline: none; box-shadow: 0 0 0 2px rgba(54, 153, 255, .3); }
.wd-login-hint { display: block; margin-top: .4rem; font-size: .85rem; color: #7e8299; }
.wd-login-caps { display: block; margin-top: .4rem; font-size: .85rem; font-weight: 500; color: #b07800; }
.wd-login-caps[hidden] { display: none; }
.wd-login-error { display: none; margin-top: .4rem; font-size: .85rem; font-weight: 500; color: #f64e60; }
.wd-login-error:not(:empty) { display: block; }
.wd-login-field.has-error .wd-login-input input { border-color: #f64e60; }
.wd-login-field.has-error .wd-login-input > i { color: #f64e60; }

.wd-login-remember { margin: .25rem 0 1.5rem; color: #3f4254; font-size: .95rem; }
.wd-login-remember > span { margin-right: .6rem; }
.wd-login-submit { height: 3.25rem; border-radius: .65rem; font-size: 1.05rem; font-weight: 600; }

.wd-login-help { display: flex; gap: .65rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid #e4e6ef; color: #7e8299; font-size: .875rem; line-height: 1.5; }
.wd-login-help i { color: #b5b5c3; font-size: 1.1rem; margin-top: .1rem; }

/* Tablet and phone: the brand on top, the form in a card */
@media (max-width: 991.98px) {
    .wd-login { flex-direction: column; background: #1a1530; }
    .wd-login-brand { flex: 0 0 auto; }
    .wd-login-brand-inner { padding: 2rem 1.25rem 3.5rem; align-items: center; text-align: center; }
    .wd-login-logo { margin-top: 0; margin-bottom: .75rem; }
    .wd-login-logo-icon { width: 48px; height: 48px; }
    .wd-login-logo-text { height: 70px; width: 124px; }
    .wd-login-title { font-size: 1.05rem; font-weight: 500; color: rgba(255, 255, 255, .8); margin-bottom: 0; }
    .wd-login-features, .wd-login-copy { display: none; }
    .wd-login-main { align-items: flex-start; padding: 0 1rem 2rem; margin-top: -2rem; position: relative; }
    .wd-login-card { background: #fff; border-radius: 1rem; padding: 1.75rem 1.25rem 1.5rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
    .wd-login-heading { font-size: 1.5rem; }
    .wd-login-lead { margin-bottom: 1.25rem; }
}
