body{
    background:
        linear-gradient(135deg, rgba(122,12,46,.06), rgba(245,197,24,.06)),
        var(--bg);
}

/* header banner image */
.banner{
    width: 100%;
    display: block;
    max-height: 240px;
    object-fit: cover;
}

.head{
    background: linear-gradient(120deg, var(--brand-dark), var(--brand), var(--brand-light));
    height: 52px;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.head p{
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 15px;
}

.logincontain{
    min-height: 539px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
}

.loginform{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 460px;
    background-color: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    padding-bottom: 28px;
}

/* card header */
.form-head{
    padding: 22px 30px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
    background: linear-gradient(120deg, #fff, #fff8fa);
}
.loginform h2{
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0;
}
.form-head .sub{
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

/* error banner */
.loginerror{
    margin: 0 24px 18px 24px;
    padding: 10px 14px;
    background: #fde2e2;
    color: #b91c1c;
    border: 1px solid #f5b5b5;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
}

/* labelled fields */
.field{
    display: flex;
    flex-direction: column;
    margin: 0 24px 16px 24px;
}
.field label{
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
    letter-spacing: .3px;
}
.loginform input[type="text"],
.loginform input[type="password"]{
    border: 1px solid var(--line);
    padding: 12px 14px;
    height: 46px;
    border-radius: 10px;
    font-size: 14px;
    font-family: "Inter", sans-serif;
    transition: .2s ease;
}
.loginform input::placeholder{
    color: #9ca3af;
}
.loginform input:focus{
    box-shadow: 0 0 0 4px rgba(122,12,46,.12);
    outline: none;
    border: 1px solid var(--brand-light);
}

/* role radios */
.selecta{
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 4px 24px 16px 24px;
}
.selecta label{
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}
.selecta input{
    accent-color: var(--brand);
    transform: scale(1.15);
    cursor: pointer;
}
.loginform .case{
    color: var(--muted);
    margin: 0 24px 4px 24px;
    font-size: 12px;
}

/* demo accounts panel */
.sample{
    margin: 10px 24px 4px 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7f9, #fffdf3);
    box-shadow: var(--shadow);
}

/* panel title */
.sample-title{
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 12.5px;
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: .4px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

/* credential rows */
.sample-row{
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 12px;
    margin-bottom: 8px;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    transition: .18s ease;
}
.sample-row:hover{
    border-color: var(--brand-light);
    box-shadow: 0 4px 12px rgba(122,12,46,.12);
    transform: translateY(-1px);
}
.sample-row .rolebadge{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.sample-row .rolebadge ion-icon{ font-size: 13px; }
.sample-row .rolebadge.student{ background: #e7f0ff; color: #1d4ed8; }
.sample-row .rolebadge.staff{ background: #fdeccd; color: #92600a; }
.sample-row .cred{
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    margin: 0 10px;
}
.sample-row .cred .who{
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--brand-dark);
}
.sample-row .cred .lin{
    font-size: 12px;
    color: var(--ink);
}
.sample-row .cred b{
    color: var(--muted);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.sample-row .use{
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-dark);
    background: var(--accent);
    padding: 4px 14px;
    border-radius: 999px;
    flex-shrink: 0;
}
.sample-note{
    margin: 6px 2px 0 2px;
    font-size: 11px;
    color: var(--muted);
}

/* sign in button */
.signin{
    margin: 18px 24px 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    background: linear-gradient(120deg, var(--accent), var(--accent-dark));
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(245,197,24,.4);
    transition: .2s ease;
}
.signin:hover{
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(245,197,24,.55);
}
.signin .icon{
    color: var(--brand-dark);
    margin: auto 0 auto 6px;
    transition: 0.2s;
}
.signin input{
    border: none;
    color: var(--brand-dark);
    background: transparent;
    height: 100%;
    margin: auto 0;
    padding: 0 6px;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    letter-spacing: .5px;
    cursor: pointer;
}
.signin input:hover,
.signin:hover .icon{
    color: #000;
}
