/* ===== login card (student) — โหลดเฉพาะหน้า login ===== */
* { box-sizing: border-box; }
body { background: #f0f2f5; }

/* พื้นที่กลางหน้า (เว้นด้านบนให้ fixed header) */
.lp-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 150px 16px 50px;
}
@media (max-width: 700px) { .lp-page { padding-top: 110px; } }

/* ===== Outer card ===== */
.lp-card {
    width: 100%;
    max-width: 920px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,.13);
    overflow: hidden;
    display: flex;
    min-height: 560px;
}

/* ===== Left panel ===== */
.lp-left {
    width: 44%;
    flex-shrink: 0;
    background: linear-gradient(180deg, #fffdf0 0%, #fff9d6 30%, #ffe066 65%, #ffc30e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px 24px;
    position: relative;
    overflow: hidden;
}
.lp-dots {
    position: absolute;
    top: 16px; left: 16px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    opacity: .3;
}
.lp-dots span { width: 5px; height: 5px; border-radius: 50%; background: #7a5500; display: block; }
.lp-circle {
    position: absolute;
    bottom: 28px; left: 18px;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(120,80,0,.3);
}
.lp-logo-wrap { position: relative; z-index: 1; margin-bottom: 12px; }
.lp-logo-wrap img {
    width: 100px; height: 100px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
    display: block;
}
.lp-school-name {
    font-size: 1.25rem; font-weight: 800; color: #2d2800;
    text-align: center; margin-bottom: 3px;
    position: relative; z-index: 1;
}
.lp-school-sub {
    font-size: .78rem; color: #6b4f00;
    text-align: center; margin-bottom: 18px;
    position: relative; z-index: 1;
}
.lp-photo {
    width: 100%; height: 210px;
    border-radius: 16px; overflow: hidden;
    flex-shrink: 0; position: relative; z-index: 1;
    box-shadow: 0 6px 20px rgba(0,0,0,.22);
    margin-bottom: 18px;
}
.lp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-quote {
    position: relative; z-index: 1;
    width: 100%; padding: 0 4px; flex: 1;
    display: flex; flex-direction: column; justify-content: center;
}
.lp-quote-mark {
    font-size: 3.6rem; line-height: .85;
    color: rgba(100,65,0,.45); font-family: Georgia, serif;
    display: block; margin-bottom: 2px;
}
.lp-quote-text { font-size: 1.08rem; font-weight: 800; color: #2d2800; line-height: 1.7; padding: 0 6px; }
.lp-quote-end {
    font-size: 3.6rem; line-height: .85;
    color: rgba(100,65,0,.45); font-family: Georgia, serif;
    display: block; text-align: right; margin-top: 2px;
}

/* ===== Right panel ===== */
.lp-right {
    flex: 1;
    display: flex; flex-direction: column; justify-content: center;
    padding: 52px;
    max-width: 480px;
}
.lp-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.lp-heading-icon {
    width: 52px; height: 52px; background: #fff8d6; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #ffc30e; flex-shrink: 0;
}
.lp-heading h1 { font-size: 1.8rem; font-weight: 800; color: #3d3d3b; margin: 0; line-height: 1.2; }
.lp-heading-sub { font-size: .88rem; color: #888; margin-bottom: 28px; margin-left: 66px; }
.lp-right label { font-weight: 600; color: #444; font-size: .93rem; margin-bottom: 6px; display: block; }
.lp-input-wrap {
    position: relative; display: flex; align-items: center;
    border: 1.5px solid #dde1e7; border-radius: 10px;
    background: #fff; overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.lp-input-wrap:focus-within { border-color: #ffc30e; box-shadow: 0 0 0 3px rgba(255,195,14,.15); }
.lp-input-icon { width: 44px; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: .95rem; flex-shrink: 0; }
.lp-input-wrap input {
    flex: 1; border: none; outline: none;
    font-family: "DB Ozone X", Prompt, SansSerif;
    font-size: .97rem; padding: 12px 12px 12px 0;
    background: transparent; color: #3d3d3b;
}
.lp-input-wrap input::placeholder { color: #bbb; }
.lp-eye-btn {
    width: 40px; display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    color: #aaa; font-size: .9rem; padding: 0; flex-shrink: 0;
    transition: color .15s;
}
.lp-eye-btn:hover { color: #666; }
.btn-login {
    width: 100%; background: #ffc30e; border: none; color: #3d3d3b;
    font-family: "DB Ozone X", Prompt, SansSerif;
    font-size: 1.08rem; font-weight: 800; padding: 13px; border-radius: 10px;
    cursor: pointer; transition: background .2s, box-shadow .2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 4px 14px rgba(255,195,14,.45);
    margin-top: 4px;
}
.btn-login:hover { background: #e6ae00; box-shadow: 0 6px 18px rgba(255,195,14,.55); }
.lp-right .alert-danger {
    border-left: 4px solid #dc3545; background: #fff5f5; color: #c0392b;
    border-radius: 8px; font-size: .92rem; padding: 10px 14px; margin-bottom: 16px;
}
.lp-right .form-group { margin-bottom: 20px; }

/* ===== Mobile logo ===== */
.lp-mobile-logo { display: none; flex-direction: column; align-items: center; margin-bottom: 24px; }
.lp-mobile-logo img {
    width: 76px; height: 76px; object-fit: contain;
    background: #fff; border-radius: 50%; padding: 9px;
    box-shadow: 0 4px 16px rgba(0,0,0,.13); border: 3px solid #ffd84d;
}
.lp-mobile-logo .m-school-name { margin-top: 10px; font-size: 1.05rem; font-weight: 800; color: #3d3d3b; }
.lp-mobile-logo .m-school-sub { font-size: .78rem; color: #888; margin-top: 2px; }

/* ===== Responsive ===== */
@media (max-width: 700px) {
    .lp-left { display: none; }
    .lp-mobile-logo { display: flex; }
    .lp-card { max-width: 420px; }
    .lp-right { padding: 32px 24px 28px; }
    .lp-heading h1 { font-size: 1.5rem; }
    .lp-heading-sub { margin-left: 0; }
}
