:root {
    --blue: #4a90d9;
    --blue-light: #e8f4f8;
    --blue-hover: #357abd;
    --gray-200: #f0f4f8;
    --gray-400: #d1d9e6;
    --green: #3bb273;
    --overlay: rgba(0, 0, 0, .45);
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font: 14px/1.45 "Noto Sans KR", system-ui, Segoe UI, Arial, sans-serif;
    color: #2c3e50;
    background: #f6f9fc
}

.topbar {
    background: #fff;
    color: #2c3e50;
    padding: 10px 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    border-bottom: 2px solid var(--blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.topbar__title {
    font-weight: 700;
    color: var(--blue);
}

.topbar__spacer {
    flex: 1
}

.topbar button {
    background: var(--blue);
    border: 0;
    border-radius: 16px;
    color: #fff;
    padding: 6px 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.topbar button:hover {
    background: var(--blue-hover);
}

.wrap {
    padding: 14px 16px;
    max-width: 1400px;
    margin: 0 auto
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--blue);
    background: var(--blue);
    color: #fff;
    border-radius: 4px;
    padding: 6px 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--blue-hover);
    border-color: var(--blue-hover);
}

.btn--small {
    padding: 3px 6px
}

.modal__backdrop {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000
}

.modal__panel {
    width: min(460px, 92vw);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(74, 144, 217, 0.15);
    overflow: hidden
}

.modal__head {
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.modal__body {
    padding: 14px 16px
}

.modal__msg {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin: 12px 0;
    color: #2c3e50;
}

.modal__foot {
    padding: 10px 12px;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.modal__foot > label {
    margin-right: auto;
    color: #374151;
    font-size: 12px;
    font-weight: bold;
}

.modal__actions {
    display: flex;
    gap: 8px;
    justify-content: center
}

.modal__close {
    cursor: pointer;
    opacity: .9
}

.modal__input {
    width: 100%;
    border: 1px solid var(--gray-400);
    border-radius: 4px;
    padding: 8px 10px;
    margin-top: 6px;
    transition: border-color 0.2s;
}

.modal__input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.field {
    margin: 8px 0
}

.center-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    place-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f4f8 0%, #d1ecf1 50%, #bee5eb 100%);
}

.login-logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.login-subtitle {
  color: #7f8c8d;
  font-size: 1rem;
  margin-bottom: 50px;
}

.login-card {
    width: min(420px, 94vw);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px 22px;
    box-shadow: 0 8px 32px rgba(74, 144, 217, 0.12);
}

.login-card .field {
    margin: 12px 0
}

.login-card .input {
    width: 100%;
    border: 1px solid var(--gray-400);
    border-radius: 4px;
    padding: 10px 12px;
    transition: border-color 0.2s;
}

.login-card .input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.error {
    color: #e15554;
    margin-top: 8px;
    display: none
}

.bottomBar {
    width: 100%;
    margin-top: 2vh;
}

.bottomBar .btn_group {
    display: flex;
    justify-content: flex-end;
}

.bottomBar .btn_group .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--blue);
    background: var(--blue);
    color: #fff;
    border-radius: 4px;
    padding: 6px 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.bottomBar .btn_group .btn:hover {
    background: var(--blue-hover);
    border-color: var(--blue-hover);
}

.backBtn {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    text-decoration: none;
    color: #555;
    font-size: 20px;
    transition: all 0.2s;
    cursor: pointer;
}

.backBtn:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: #4a90d9;
}