/* =========================
   JOURNAL LAYOUT
   ========================= */

.journal-layout {
    display: flex;
    grid-template-columns: 2fr 1fr;
    min-height: 100vh;
    align-items: stretch;
}


.entries {
    flex: 1;
    border-right: 1px solid rgba(254, 254, 254, 0.15);
}

.sidebar {
    width: 340px;
    top: 24px;
    position: sticky;
    align-self: flex-start;
}


/*  ============
    Lists
    ============*/

ul {
    list-style: none;      /* Remove bullets */
    padding: 0;
    margin: 20px 0;
}

li {
    margin-bottom: 10px;
}

li a {
    display: block;
    padding: 12px 16px;
    background-color: #0f1115;
    color: #b0bcf8;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s;
}

li a:hover {
    background-color: #373c46;
    color: #f0f3ff;
}

/* =========================
   LOGIN CARD
   ========================= */

.auth-container {
    margin: 250px 14px;
    padding: 36px 24px;
    
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(254, 254, 254, 0.5);
}


/* =========================
   BADGE
   ========================= */

.badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    margin-bottom: 0 auto 16px;

    color: #1d4ed8;
    background: #eff6ff;

    padding: 4px 10px;
    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-dot {
    width: 6px;
    height: 6px;

    background: #2563eb;
    border-radius: 50%;
}


/* =========================
   TEXT
   ========================= */

.header-title {
    margin: 0 0 8px;

    font-size: 1.5rem;
    font-weight: 700;
}

.header-desc {
    margin: 0 0 28px;

    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}


/* =========================
   FORM
   ========================= */

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

.form-label {
    display: block;
    margin-bottom: 6px;

    font-size: 0.85rem;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    box-sizing: border-box;

    padding: 12px 14px;

    color: #0f172a;
    background: white;

    border: 2px solid rgba(255, 255, 255, 1);
    border-radius: 8px;

    font-size: 14px;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
}


/* =========================
   PASSWORD BUTTON
   ========================= */

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

    padding: 4px;

    border: none;
    background: none;

    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;

    cursor: pointer;
}

.toggle-password:hover {
    color: #0f172a;
}


/* =========================
   SUBMIT
   ========================= */

.submit-btn {
    width: 100%;
    margin-top: 8px;
    padding: 12px;

    border: none;
    border-radius: 8px;

    background: #2563eb;
    color: white;

    font-size: 0.95rem;
    font-weight: 600;

    cursor: pointer;
}

.submit-btn:hover {
    background: #1d4ed8;
}


/* =========================
   NOTICE
   ========================= */

.legal-notice {
    margin: 24px 0 0;
    padding-top: 16px;

    border-top: 1px solid #e2e8f0;

    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.4;

    text-align: center;
}




/* =========================================
   RESPONSIVE LAYOUT (TABLET & MOBILE)
   ========================================= */

/* Tablet (Width 900px and down) */
@media (max-width: 900px) {
  .journal-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px;
  }

  .sidebar {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Mobile (Width 600px and down) */
@media (max-width: 600px) {
  header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
  }

  .journal-layout {
    padding: 12px;
    gap: 30px;
  }

  .entries {
    padding: 0 8px;
  }

  .auth-container {
    padding: 20px 16px;
  }

  /* Make inputs and buttons full width and comfortable for touch */
  .form-input {
    font-size: 16px; /* Prevents iOS automatic zoom on focus */
    padding: 12px 14px;
  }

  .submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
  }
  
  .toggle-password {
    padding: 0 10px;
    font-size: 0.8rem;
  }
}

