/* ===== GLOBAL VARIABLES ===== */
:root {
  --primary: #1e40af;        /* Deep Blue */
  --secondary: #0ea5e9;      /* Sky Blue */
  --success: #16a34a;        /* Green */
  --danger: #dc2626;         /* Red */
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border: #e5e7eb;
}

/* ===== RESET ===== */
* {
  box-sizing: border-box;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

/* ===== hender ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
    color: white;
    background:  linear-gradient(135deg, #2023b1 0%, #06b6d4 100%);
    position: fixed;   /* stay at top */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  
  .header-left {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    border-style: solid;
    border-color: rgb(0, 0, 0);
    
    margin-right: 10px;
}

header nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: 0.2s;
}

header nav a:hover {
    color: var(--secondary);
}

/* ===== BODY ===== */
body {
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #5f81f1 0%, #c7d2fe 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    line-height: 1.6;

}

/* ===== CARD ===== */
.card {
  margin: 0 auto;
  background: #ffffff;
  width: 500px;
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* ===== TITLE ===== */
.card h2 {
  text-align: center;
  margin-bottom: 24px;
  color: var(--text-dark);
  font-weight: 600;
}

/* ===== INPUT ===== */
.input-group {
  margin-bottom: 18px;
}

.input-group label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  transition: 0.25s;
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,64,175,0.15);
  outline: none;
}

/* ===== BUTTON ===== */
.btn {
    background: linear-gradient(135deg,#2023b1 0%, #06b6d4 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    width: 100%;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}


.btn:hover::before {
    left: 100%;
}

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

/* Loading State */
.btn.loading {
    pointer-events: none;
}

.btn-text {
    transition: opacity 0.3s ease;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    opacity: 0;
    animation: spin 1s linear infinite;
    transition: opacity 0.3s ease;
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .btn-loader {
    opacity: 1;
}


/* ===== MESSAGE ===== */
.error {
  color: var(--danger);
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
}

.success {
  color: var(--success);
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
}

/* ===== LINK ===== */
.link {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.link a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

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


/* ===== MEMO CAROUSEL ===== */
.memo-carousel {
    width: 100%;
    max-width: 600px;
    margin: 30px auto 0; 
    background-color: #f7f7f7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    padding: 10px;
}

.memo-slide {
    display: none;
    height: 500px;              
    position: relative;
}

.memo-slide.active {
    display: block;
}

.memo-slide img {
    width: 100%;
    height: 95%;                 
    border-radius: 5px;
}

.memo-slide p {
    margin-top: 10px;
    font-size: 16px;
}

