/* =========================================================
   OFFICE CARE - style.css
   Login + Register + Dashboard
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: #182033;
    background: #f7f8fc;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
}

a {
    text-decoration: none;
}

/* =========================================================
   LOGIN / REGISTER
========================================================= */

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 52% 48%;
    overflow: hidden;
    background: #2d43ac;
}

.brand-panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(145deg, #2d43ac 0%, #4661ee 100%);
}

.brand-logo {
    position: relative;
    z-index: 2;
    width: min(56%, 390px);
    filter: drop-shadow(0 10px 18px rgba(18, 38, 130, .18));
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .10);
}

.circle-one {
    width: 540px;
    height: 540px;
    left: -310px;
    top: -170px;
    box-shadow:
        0 0 0 74px rgba(255, 255, 255, .035),
        0 0 0 150px rgba(255, 255, 255, .025);
}

.circle-two {
    width: 390px;
    height: 390px;
    right: -210px;
    bottom: -220px;
    box-shadow:
        0 0 0 60px rgba(255, 255, 255, .035),
        0 0 0 125px rgba(255, 255, 255, .02);
}

.form-panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 60px 48px 90px;
    background: #fff;
    border-radius: 48px 0 0 48px;
    margin-left: -10px;
    z-index: 3;
    box-shadow: -15px 0 40px rgba(22, 43, 126, .08);
}

.form-panel::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -72px;
    top: -45px;
    border-radius: 50%;
    background: #f2f4fb;
}

.form-panel::before {
    content: "";
    position: absolute;
    left: 0;
    top: 55px;
    bottom: 55px;
    width: 1px;
    background: rgba(55, 78, 190, .03);
    box-shadow: -12px 0 35px rgba(31, 52, 151, .07);
}

.form-card {
    position: relative;
    z-index: 2;
    width: min(100%, 440px);
    min-width: 0;
}

.form-card.compact {
    width: min(100%, 560px);
    min-width: 0;
    padding: 35px 0;
}

.badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f0f3ff;
    color: #2749da;
    font-size: 14px;
    font-weight: 700;
}

.form-card h1 {
    margin: 18px 0 8px;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.1;
    letter-spacing: -1px;
}

.subtitle {
    margin: 0 0 32px;
    color: #737c91;
    font-size: 16px;
    line-height: 1.6;
}

.form-group {
    min-width: 0;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    font-size: 15px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    max-width: 100%;
    height: 60px;
    padding: 0 18px;
    border: 1px solid #d8deeb;
    border-radius: 16px;
    outline: none;
    background: #fbfcff;
    color: #182033;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 16px;
    transition: .2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #4962e8;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(73, 98, 232, .10);
}

.form-group input::placeholder {
    color: #aeb6c8;
}

.form-group select,
.form-group input[type="date"] {
    cursor: pointer;
}

.form-group input[type="date"] {
    color: #555f73;
}

.form-row-two {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.password-wrap {
    position: relative;
    min-width: 0;
}

.password-wrap input {
    width: 100%;
    padding-right: 60px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    outline: none;
    background: transparent;
    color: #7d8596;
    cursor: pointer;
    transition: .2s;
}

.toggle-password:hover {
    background: #f1f3f9;
    color: #3655dd;
}

.toggle-password svg {
    pointer-events: none;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 5px 0 26px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #464f61;
    cursor: pointer;
}

.remember input {
    width: 18px;
    height: 18px;
    accent-color: #3655dd;
}

.text-link,
.register-text a {
    color: #2445d9;
    font-weight: 600;
}

.text-link:hover,
.register-text a:hover {
    text-decoration: underline;
}

.primary-btn {
    width: 100%;
    height: 60px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #4162f1, #2d49cb);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(49, 75, 205, .22);
    transition: transform .2s, box-shadow .2s;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(49, 75, 205, .27);
}

.primary-btn:active {
    transform: translateY(0);
}

.register-text {
    margin-top: 28px;
    text-align: center;
    color: #7d8596;
}

.alert {
    padding: 13px 16px;
    margin-bottom: 18px;
    border-radius: 12px;
    font-size: 14px;
}

.alert.error {
    border: 1px solid #ffd1d1;
    background: #fff1f1;
    color: #a32222;
}

.alert.success {
    border: 1px solid #c8f1da;
    background: #ecfbf3;
    color: #17643a;
}

/* Register: เลื่อนเฉพาะ panel สีขาว */
.register-page {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

.register-page .brand-panel {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

.register-page .form-panel {
    height: 100vh;
    min-height: 0;
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 45px;
    padding-bottom: 45px;
    scrollbar-width: thin;
    scrollbar-color: #c5cbea transparent;
}

.register-page .form-panel::-webkit-scrollbar {
    width: 7px;
}

.register-page .form-panel::-webkit-scrollbar-track {
    background: transparent;
}

.register-page .form-panel::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background: #c5cbea;
}

.register-page .form-panel::-webkit-scrollbar-thumb:hover {
    background: #9da8dc;
}

.register-page .form-card,
.register-page .form-card.compact {
    width: min(100%, 560px);
    min-width: 0;
}

.register-page .form-card.compact {
    padding: 10px 0 35px;
}

/* Toast สมัครสมาชิกสำเร็จ */
.register-success-toast {
    position: fixed;
    top: 25px;
    left: 50%;
    z-index: 9999;
    transform: translateX(-50%);
    min-width: 360px;
    max-width: calc(100% - 40px);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 20px;
    border: 1px solid #ccebd9;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(30, 80, 55, .18);
    animation: successSlideDown .4s ease;
}

.register-success-toast .success-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f8ef;
    color: #249455;
    font-size: 24px;
    font-weight: 700;
}

.register-success-toast strong {
    display: block;
    margin-bottom: 2px;
    color: #17643a;
    font-size: 16px;
}

.register-success-toast p {
    margin: 0;
    color: #657269;
    font-size: 14px;
}

@keyframes successSlideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* =========================================================
   DASHBOARD
========================================================= */

.oc-dashboard-body {
    margin: 0;
    min-height: 100vh;
    background: #f5f7fc;
    overflow-x: hidden;
}

.oc-app {
    min-height: 100vh;
    display: flex;
}

/* Sidebar */
.oc-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    width: 255px;
    min-width: 255px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    overflow-y: auto;
    background: linear-gradient(180deg, #263ba3 0%, #3149c4 55%, #273ba6 100%);
    color: #fff;
}

.oc-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 26px;
}

.oc-sidebar-logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.oc-sidebar-logo div {
    min-width: 0;
}

.oc-sidebar-logo strong {
    display: block;
    font-size: 16px;
    letter-spacing: .3px;
}

.oc-sidebar-logo span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .65);
    font-size: 10px;
}

.oc-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.oc-menu-item {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 13px;
    border-radius: 13px;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    font-weight: 500;
    transition: .2s;
}

.oc-menu-item:hover {
    background: rgba(255, 255, 255, .09);
    color: #fff;
}

.oc-menu-item.active {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    box-shadow: inset 3px 0 0 rgba(255, 255, 255, .9);
}

.oc-device-mini {
    margin-top: auto;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 15px;
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.oc-device-mini-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.oc-device-mini p {
    margin: 8px 0 4px;
    color: rgba(255, 255, 255, .76);
    font-size: 12px;
}

.oc-device-time {
    color: rgba(255, 255, 255, .5);
    font-size: 10px;
}

.oc-status-dot {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    display: inline-block;
    border-radius: 50%;
    background: #a8afbd;
}

.oc-status-dot.online {
    background: #40cf88;
    box-shadow: 0 0 0 4px rgba(64, 207, 136, .15);
}

.oc-logout {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    padding: 11px;
    border-radius: 11px;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
    transition: .2s;
}

.oc-logout:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

/* Main */
.oc-main {
    width: calc(100% - 255px);
    min-height: 100vh;
    margin-left: 255px;
}

.oc-topbar {
    position: sticky;
    top: 0;
    z-index: 500;
    height: 82px;
    display: flex;
    align-items: center;
    padding: 0 32px;
    border-bottom: 1px solid #e8ebf3;
    background: #fff;
}

.oc-page-title h1 {
    margin: 0;
    color: #182033;
    font-size: 23px;
    line-height: 1.2;
    letter-spacing: 0;
}

.oc-page-title p {
    margin: 4px 0 0;
    color: #8a92a5;
    font-size: 12px;
}

.oc-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.oc-user-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #edf1ff;
    color: #3851cf;
    font-weight: 800;
}

.oc-user-info strong {
    display: block;
    font-size: 13px;
}

.oc-user-info span {
    display: block;
    margin-top: 2px;
    color: #9299a9;
    font-size: 11px;
}

.oc-menu-toggle {
    display: none;
    margin-right: 15px;
    border: 0;
    background: transparent;
    font-size: 25px;
    cursor: pointer;
}

.oc-content {
    padding: 28px 30px 50px;
}

/* Welcome */
.oc-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 28px 30px;
    border-radius: 20px;
    background: linear-gradient(120deg, #354ed0 0%, #4c68ed 100%);
    color: #fff;
    box-shadow: 0 15px 45px rgba(42, 64, 171, .15);
}

.oc-small-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .15);
    font-size: 10px;
    font-weight: 700;
}

.oc-welcome h2 {
    margin: 13px 0 7px;
    font-size: 24px;
}

.oc-welcome p {
    margin: 0;
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    line-height: 1.6;
}

.oc-live-status {
    min-width: max-content;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
    font-size: 12px;
}

.oc-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a7afc1;
}

.oc-live-dot.online {
    background: #6df2ac;
    box-shadow: 0 0 0 5px rgba(109, 242, 172, .15);
}

/* Status cards */
.oc-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.oc-stat-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e8ebf3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(35, 49, 94, .04);
}

.oc-stat-label {
    margin: 0 0 10px;
    color: #8b93a5;
    font-size: 12px;
}

.oc-stat-card h3 {
    margin: 0;
    color: #182033;
    font-size: 22px;
    line-height: 1.25;
}

.oc-stat-detail {
    display: block;
    margin-top: 8px;
    color: #9aa1b1;
    font-size: 11px;
}

/* Panels */
.oc-main-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.oc-panel {
    min-width: 0;
    padding: 22px;
    border: 1px solid #e7eaf2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(35, 49, 94, .035);
}

.oc-full-panel {
    margin-top: 20px;
}

.oc-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.oc-panel-head h3 {
    margin: 0;
    font-size: 15px;
}

.oc-panel-head p {
    margin: 5px 0 0;
    color: #9aa1b0;
    font-size: 10px;
}

.oc-session-info {
    min-width: 0;
}

.oc-session-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid #f0f1f5;
    font-size: 12px;
}

.oc-session-row:last-child {
    border-bottom: 0;
}

.oc-session-row span {
    color: #929aaa;
}

.oc-session-row strong {
    text-align: right;
    font-size: 12px;
}

/* Summary */
.oc-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.oc-summary-item {
    padding: 16px;
    border-radius: 13px;
    background: #f8f9fd;
}

.oc-summary-item span {
    display: block;
    color: #969dac;
    font-size: 10px;
}

.oc-summary-item strong {
    display: block;
    margin-top: 7px;
    font-size: 15px;
}

/* Camera */
.oc-camera-status {
    padding: 5px 9px;
    border-radius: 99px;
    background: #f0f1f5;
    color: #8f96a5;
    font-size: 9px;
    font-weight: 700;
}

.oc-camera-status.active {
    background: #e8f8f0;
    color: #198157;
}

.oc-camera-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 15px;
    background: #161a25;
}

.oc-camera-box video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.oc-camera-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    background: linear-gradient(145deg, #202636, #151a25);
    color: #fff;
}

.oc-camera-placeholder-icon {
    margin-bottom: 10px;
    font-size: 34px;
}

.oc-camera-placeholder strong {
    font-size: 13px;
}

.oc-camera-placeholder p {
    max-width: 300px;
    margin: 7px auto 0;
    color: rgba(255, 255, 255, .55);
    font-size: 10px;
}

.oc-camera-actions {
    display: flex;
    gap: 9px;
    margin-top: 13px;
}

.oc-primary-button,
.oc-secondary-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.oc-primary-button {
    border: 0;
    background: linear-gradient(135deg, #3d5be2, #3049c4);
    color: #fff;
}

.oc-primary-button:hover {
    transform: translateY(-1px);
}

.oc-secondary-button {
    border: 1px solid #dfe3ec;
    background: #fff;
    color: #525b6d;
}

/* Alerts / no data */
.oc-empty {
    width: 100%;
    padding: 35px 20px;
    border: 1px dashed #dfe3ec;
    border-radius: 14px;
    background: #fafbfe;
    color: #9aa1b1;
    text-align: center;
    font-size: 13px;
}

.oc-alert-table {
    display: flex;
    flex-direction: column;
}

.oc-alert-row {
    display: grid;
    grid-template-columns: 38px 1fr 150px 95px;
    align-items: center;
    gap: 13px;
    padding: 13px 3px;
    border-bottom: 1px solid #eff1f5;
}

.oc-alert-row:last-child {
    border-bottom: 0;
}

.oc-alert-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
}

.oc-alert-icon.warning {
    background: #fff4e5;
    color: #d28223;
}

.oc-alert-icon.danger {
    background: #fff0f0;
    color: #d55454;
}

.oc-alert-icon.posture {
    background: #edf0ff;
    color: #576bd8;
}

.oc-alert-info strong {
    display: block;
    font-size: 11px;
}

.oc-alert-info span {
    display: block;
    margin-top: 3px;
    color: #9ba2b1;
    font-size: 9px;
}

.oc-alert-time {
    color: #969dac;
    font-size: 10px;
}

.oc-alert-result {
    justify-self: end;
    padding: 5px 9px;
    border-radius: 99px;
    font-size: 9px;
    font-weight: 700;
}

.oc-alert-result.success {
    background: #eaf9f2;
    color: #198159;
}

.oc-alert-result.normal {
    background: #edf0ff;
    color: #485ccc;
}

/* Camera consent modal */
.oc-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 22, 44, .55);
    backdrop-filter: blur(5px);
}

.oc-modal.show {
    display: flex;
}

.oc-modal-card {
    width: min(450px, 100%);
    padding: 28px;
    border-radius: 20px;
    background: #fff;
    text-align: center;
    box-shadow: 0 25px 80px rgba(16, 24, 60, .25);
    animation: ocModalIn .25s ease;
}

.oc-modal-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 15px;
    background: #edf1ff;
    font-size: 25px;
}

.oc-modal-card h3 {
    margin: 0;
    font-size: 19px;
}

.oc-modal-card > p {
    margin: 10px 0 18px;
    color: #7e8697;
    font-size: 11px;
    line-height: 1.7;
}

.oc-privacy-box {
    padding: 14px;
    border-radius: 12px;
    background: #f7f8fc;
    text-align: left;
}

.oc-privacy-box strong {
    font-size: 11px;
}

.oc-privacy-box p {
    margin: 5px 0 0;
    color: #818999;
    font-size: 10px;
    line-height: 1.6;
}

.oc-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

@keyframes ocModalIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .oc-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        min-height: 250px;
    }

    .brand-logo {
        width: 210px;
    }

    .form-panel {
        min-height: calc(100vh - 250px);
        margin-left: 0;
        margin-top: -28px;
        padding: 48px 24px;
        border-radius: 38px 38px 0 0;
    }

    .form-panel::before {
        display: none;
    }

    .register-page {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .register-page .brand-panel {
        height: 250px;
        min-height: 250px;
    }

    .register-page .form-panel {
        height: auto;
        min-height: calc(100vh - 222px);
        overflow: visible;
        padding-top: 55px;
    }

    .oc-sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
    }

    .oc-sidebar.open {
        transform: translateX(0);
    }

    .oc-main {
        width: 100%;
        margin-left: 0;
    }

    .oc-menu-toggle {
        display: block;
    }
}

@media (max-width: 700px) {
    .oc-main-grid,
    .oc-stat-grid {
        grid-template-columns: 1fr;
    }

    .oc-content {
        padding: 20px 15px 40px;
    }

    .oc-topbar {
        padding: 0 16px;
    }

    .oc-page-title p,
    .oc-user-info {
        display: none;
    }

    .oc-welcome {
        flex-direction: column;
        align-items: flex-start;
    }

    .oc-alert-row {
        grid-template-columns: 35px 1fr;
        gap: 10px;
    }

    .oc-alert-time,
    .oc-alert-result {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 600px) {
    .form-row-two {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-card.compact {
        padding: 10px 0 30px;
    }
}

@media (max-width: 520px) {
    .form-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .form-card h1 {
        font-size: 38px;
    }

    .form-panel {
        padding-left: 20px;
        padding-right: 20px;
    }

    .register-success-toast {
        top: 15px;
        width: calc(100% - 30px);
        min-width: 0;
    }

    .oc-summary-grid {
        grid-template-columns: 1fr;
    }

    .oc-modal-actions {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   PASSWORD EYE BUTTON
========================================================= */

.password-wrap {
    position: relative;
}

.password-wrap input {
    width: 100%;
    padding-right: 55px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 16px;

    transform: translateY(-50%);

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    background: transparent;

    color: #7f8798;

    cursor: pointer;
}

.toggle-password:hover {
    color: #3654d9;
}

.toggle-password:focus {
    outline: none;
}

.toggle-password svg {
    width: 19px;
    height: 19px;
}

.eye-closed {
    display: none;
}

.toggle-password.show-password .eye-open {
    display: none;
}

.toggle-password.show-password .eye-closed {
    display: block;
}


/* =========================================================
   RESET PASSWORD - BACK BUTTON
========================================================= */

.form-panel {
    position: relative;
}

.back-link {
    position: absolute;

    top: 32px;
    left: 32px;

    z-index: 20;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #68738b;

    font-size: 18px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.back-link svg {
    width: 18px;
    height: 18px;

    flex-shrink: 0;
}

.back-link:hover {
    color: #3654d9;

    transform: translateX(-2px);
}


/* =========================================================
   PASSWORD SHOW / HIDE
========================================================= */

.password-wrap {
    position: relative;
}

.password-wrap input {
    width: 100%;
    padding-right: 55px;
}

.toggle-password {
    position: absolute;

    top: 50%;
    right: 16px;

    transform: translateY(-50%);

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    background: transparent;

    color: #7f8798;

    cursor: pointer;
}

.toggle-password:hover {
    color: #3654d9;
}

.toggle-password:focus {
    outline: none;
}

.toggle-password svg {
    width: 19px;
    height: 19px;
}


/* ตาปิดซ่อนไว้ตอนเริ่มต้น */

.eye-closed {
    display: none;
}


/* เมื่อกำลังแสดงรหัสผ่าน */

.toggle-password.show-password .eye-open {
    display: none;
}

.toggle-password.show-password .eye-closed {
    display: block;
}