<template>
  <div class="admin--modal-overlay">
    <div class="admin--modal account--locked-modal">
      <div class="admin--modal-header">
        <h4>계정 잠금</h4>
      </div>

      <div class="admin--modal-body">
        <div class="admin--error-box">
          <svg
            width="64"
            height="64"
            viewBox="0 0 24 24"
            fill="none"
            xmlns="http://www.w3.org/2000/svg"
          >
            <circle cx="12" cy="12" r="10" stroke="#f44336" stroke-width="2" />
            <path
              d="M12 8v4M12 16h.01"
              stroke="#f44336"
              stroke-width="2"
              stroke-linecap="round"
            />
          </svg>
          <h3>계정이 잠겼습니다</h3>
          <p class="main--message">비밀번호를 5회 틀렸습니다.</p>
          <p class="sub--message">슈퍼 관리자에게 문의하여주세요.</p>
        </div>
      </div>

      <div class="admin--modal-footer">
        <button
          type="button"
          @click="closeModal"
          class="admin--btn-small admin--btn-small-primary"
        >
          확인
        </button>
      </div>
    </div>
  </div>
</template>

<script setup>
  const emit = defineEmits(["close"]);

  const closeModal = () => {
    emit("close");
  };
</script>

<style scope>
  .admin--modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .admin--modal {
    background: #ffffff;
    padding: 0;
    border-radius: 8px;
    min-width: 450px;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
  }

  .account--locked-modal {
    border: 2px solid #f44336;
  }

  .admin--modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: #fafafa;
  }

  .admin--modal-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #f44336;
  }

  .admin--modal-body {
    padding: 32px 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
  }

  .admin--error-box {
    text-align: center;
    padding: 20px;
  }

  .admin--error-box svg {
    margin: 0 auto 20px;
    display: block;
  }

  .admin--error-box h3 {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 600;
    color: #f44336;
  }

  .admin--error-box .main--message {
    margin: 12px 0;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
  }

  .admin--error-box .sub--message {
    margin: 8px 0;
    color: #333333;
    font-size: 14px;
    line-height: 1.6;
  }

  .admin--modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-shrink: 0;
  }
</style>
