body {
    font-family: "Prompt", sans-serif;
    background: linear-gradient(to bottom, #3a3a3a, #1a1a1a);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #fff;
}

small {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
    min-height: 20px;
    transition: all 0.25s ease;
}

.msg-ok    { color: #22c55e; }
.msg-error { color: #ef4444; }
.msg-warn  { color: #facc15; }

.msg-ok::before    { content: "✔"; }
.msg-error::before { content: "✖"; }
.msg-warn::before  { content: "⚠"; }

/* โลโก้ */
.logo-floating {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
}

/* กล่องหลัก */
.container {
    width: 650px;
    padding: 120px 80px 80px 80px;
    background: rgba(0,0,0,0.55);
    border-radius: 25px;
    box-shadow: 0 0 35px rgba(0,0,0,0.6);
    text-align: center;
    position: relative;
}

h2 {
    font-size: 36px;
    margin-bottom: 30px;
    font-weight: bold;
}

/* แถวอินพุต */
.input-box {
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

/* wrapper ครอบ input — ทุก absolute อ้างอิงที่นี่ */
.input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.35);
    
}

/* ไอคอนซ้าย */
.icon-left {
    position: absolute;
    left: 20px;
    font-size: 24px;
    color: rgba(255,255,255,0.7); /* เปลี่ยนจาก #aaa */
    pointer-events: none;
    z-index: 1;
}

/* input ทุกช่อง */
.input-wrapper input {
    width: 100%;
    padding: 22px 22px 22px 60px;  /* left เว้นที่ icon-left */
    font-size: 24px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: #fff;
    outline: none;
    box-sizing: border-box;
}

/* ช่องที่มีปุ่มตา เพิ่ม padding-right */
.input-wrapper.has-toggle input {
    padding-right: 58px;
}

.input-wrapper input:focus {
    border-color: #999;
}
.input-wrapper input::placeholder {
    color: rgba(255,255,255,0.6);
}
/* ไอคอนตา — absolute ขวา */
.toggle-pw {
    position: absolute;
    right: 18px;
    font-size: 22px;
    color: #aaa;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
    z-index: 2;
}

.toggle-pw:hover {
    color: #fff;
}

/* ปุ่ม */
.btn {
    width: 100%;
    padding: 22px;
    background: #f1f1f1;
    color: #000;
    font-size: 26px;
    border: none;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 20px;
}

.btn:hover    { background: #e0e0e0; }
.btn:disabled { background: #888; cursor: not-allowed; }

.links {
    margin-top: 25px;
    font-size: 22px;
    display: flex;
    justify-content: space-between;
}

a       { color: #fff; text-decoration: underline; }
a:hover { color: #ccc; }