/* ===========================================
   Login Page Styles
   =========================================== */

* { margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif; }

body { background: #fff; min-height: 100vh; }

/* ==========================================
   Split Layout
   ========================================== */

.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ---- Left: Brand Panel ---- */
.login-left {
    flex: 1;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: rgba(11, 87, 208, 0.05);
    top: -160px; right: -160px;
}
.login-left::after {
    content: '';
    position: absolute;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: rgba(11, 87, 208, 0.05);
    bottom: -100px; left: -100px;
}

.login-left-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.brand-logo {
    height: 32px;
    display: block;
}

.brand-tagline {
    font-size: 15px;
    font-weight: 400;
    color: #80868b;
    letter-spacing: 0.2px;
}

/* ---- Right: Login Panel ---- */
.login-right {
    width: 560px;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 56px;
    border-left: 1px solid #f1f3f4;
}

.login-form-wrap {
    width: 100%;
    max-width: 420px;
}

/* ==========================================
   Form Header
   ========================================== */

.login-logo {
    height: 24px;
    display: block;
    margin-bottom: 10px;
}

h2 {
    font-size: 14px;
    font-weight: 400;
    color: #80868b;
    margin-bottom: 36px;
    letter-spacing: 0;
}

/* ---- Logout Info Banner ---- */
.info-banner {
    background: #e8f0fe;
    border: 1px solid #c5d8fb;
    color: #1a56db;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 13.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================
   Form Components
   ========================================== */

/* ---- Form Groups ---- */
.form-group { margin-bottom: 16px; }
.form-group.password-group { margin-bottom: 8px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #5e5e5e;
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    color: #1f1f1f;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder { color: #b0b8c1; }
.form-group input:focus {
    border-color: #0b57d0;
    box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.1);
}
.form-group input.input-error {
    border-color: #c5221f;
    box-shadow: 0 0 0 3px rgba(197, 34, 31, 0.08);
}

/* ---- Field Errors & Warnings ---- */
.field-error, .field-warning {
    display: none;
    font-size: 12px;
    line-height: 1.4;
    padding: 5px 2px;
    align-items: center;
    gap: 4px;
}
.field-error.visible  { display: flex; color: #c5221f; }
.field-warning.visible { display: flex; color: #92400e; }
.field-error i, .field-warning i { font-size: 13px; flex-shrink: 0; }

/* ---- Form Extras (checkbox + mailplug) ---- */
.form-extras {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #5e5e5e;
    cursor: pointer;
    user-select: none;
}
.checkbox-label input[type="checkbox"] {
    width: 15px; height: 15px;
    accent-color: #0b57d0;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-mailplug {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: #5e5e5e;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
}
.btn-mailplug:hover {
    border-color: #0b57d0;
    color: #0b57d0;
    background: #f0f4ff;
}
.btn-mailplug i { font-size: 14px; }

/* ---- Login Button ---- */
.btn-login {
    width: 100%;
    padding: 13px;
    background: #0b57d0;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.2px;
}
.btn-login:hover { background: #0842a0; }

/* ---- Dev Hint ---- */
.hint {
    margin-top: 20px;
    padding: 12px 14px;
    background: #f3f6f9;
    border-radius: 6px;
    font-size: 12.5px;
    color: #5e5e5e;
}
.hint strong { color: #1f1f1f; }

/* ==========================================
   Modal (Alert Dialog) — modal_pattern.md 표준
   ========================================== */

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-overlay.show { display: flex; }

.modal-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    width: 500px;
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-sm { width: 400px; }

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f1f1f;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-header h3 i { color: #c5221f; font-size: 18px; }

.modal-close-btn {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    border-radius: 50%;
    color: #5e5e5e;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}
.modal-close-btn:hover { background: rgba(0,0,0,0.05); color: #1f1f1f; }
.modal-close-btn i { font-size: 20px; }

.modal-body {
    padding: 20px 24px;
}
.modal-body p {
    font-size: 14px;
    color: #1f1f1f;
    line-height: 1.7;
    word-break: keep-all;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-radius: 0 0 12px 12px;
}

/* btn 표준 (modal 내부용) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
}
.btn-primary { background: #0b57d0; color: #fff; }
.btn-primary:hover { background: #0842a0; }
.btn-secondary { background: #fff; color: #5e5e5e; border: 1px solid #e0e0e0; }
.btn-secondary:hover { background: #f3f6f9; }

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 900px) {
    .login-left { display: none; }
    .login-right {
        width: 100%;
        border-left: none;
        padding: 48px 32px;
    }
}
