*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
}
.page.login-2-page {
  --color-primary: #6387ff;
  --color-dark: #496cf5;
  --color-muted: hsl(240, 16%, 91%);
  margin: 0;
  background: #f5f5f5;

  background-size: cover;
  background-position: center;
  color: #f9f9f9;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: "Euclid Circular B";
}

.login-2 ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.login-2 input,
.login-2 button {
  font-family: inherit;
  color: inherit;
}

.login-2 button {
  padding: 0;
  cursor: pointer;
}

.login-2 p {
  font-size: 12px;
  margin: 12px 0;
}

.login-2 p a {
  color: var(--color-primary);
}

.login-2 {
  display: flex;
  align-content: stretch;
  width: 660px;
  height: 360px;
  background: #242b43;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 80px rgba(0 0 0 / 20%);

  border-radius: 6px;
}

.login-2 .card-nav {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 178px;
}

.login-2 .card-nav .active-bar {
  position: absolute;
  top: 33.33%;
  left: 0;
  width: 5px;
  height: 33.33%;
  border-radius: 6px;
  background: var(--color-dark);
  transition: 0.4s ease-out;
}

.login-2 .card-nav li {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
}

.login-2 .card-nav li button.active {
  color: var(--color-primary);
}

.login-2 .card-nav button {
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 14px;
  transition: 0.3s;
}

.login-2 .card-nav button:not(.active):hover i {
  scale: 1.1;
}

.login-2 .card-nav button i {
  font-size: 24px;
  transition: 0.3s;
}

.login-2 .card-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: -48px 0;
  flex: 0 0 300px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-dark);
}

.login-2 .card-hero-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: 0.5s ease-in-out;
}

.login-2 .card-hero-content {
  height: 456px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-2 h2,
.login-2 h3 {
  text-align: left;
  font-weight: 400;
  margin: 0;
  padding-left: 24px;
}

.login-2 .card-hero h2 {
  color: #f9f9f9;
  margin: 0 0 2px;
}

.login-2 .card-hero h3 {
  color: #f9f9f9;
  opacity: 0.75;
  font-size: 13px;
  margin: 0 0 32px;
}

.login-2 .card-hero img {
  width: 100%;
}

.login-2 .card-form {
  position: relative;
  overflow: hidden;
  padding: 24px;
  width: 400px;
}

.login-2 .forms {
  position: absolute;
  height: 200%;
  left: 0;
  top: 0;
  transition: 0.5s ease-in-out;
}

.login-2 .card-form form {
  height: 360px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.login-2 .card-form label {
  font-size: 13px;
  color: var(--color-muted);
}

.login-2 .control {
  position: relative;
}

.login-2 .control input {
  background: rgb(255 255 255 / 4%);
  border: 0;
  border-radius: 6px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  outline: none;
  transition: 0.3s;
}

.login-2 .control input:focus {
  box-shadow: 0 0 0 2px var(--color-primary);
}

.login-2 .control input::placeholder {
  color: #bdbcd2;
}

.login-2 .control input:focus ~ i {
  color: var(--color-primary);
}

.login-2 .control i {
  color: var(--color-muted);
  position: absolute;
  top: 50%;
  right: 12px;
  translate: 0 -50%;
  transition: 0.3s;
}

.login-2 .card-form form > button {
  height: 40px;
  padding: 12px 20px;
  border-radius: 6px;
  color: #f9f9f9;
  letter-spacing: 1px;
  border: 0;
  margin-top: 12px;
  background: var(--color-dark);
}

.login-2 p.footer {
  opacity: 0.75;
}

/* ---------------- BASE ---------------- */
body {
  background: linear-gradient(135deg, #e8edf3, #f7f9fc); /* soft gradient */
  font-family: 'Inter', system-ui, sans-serif;
  color: #1f2937;
  line-height: 1.6;
  margin: 0;
}

/* ---------------- HEADER ---------------- */
.app-header {
  background: #fff;
  border-bottom: 1px solid #e0e7ff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #3b82f6;
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #4b5563;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background: #3b82f6;
  color: #fff;
}

.logout-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
  padding: 8px 22px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59,130,246,0.4);
}

/* ---------------- FEED WRAPPER ---------------- */
.feed-wrapper {
  max-width: 450px; /* narrow feed like Instagram/LinkedIn */
  margin: 50px auto;
  padding: 0 12px;
}

/* ---------------- CARD ---------------- */
#postsContainer .card {
  border: none;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px); /* frosted glass effect */
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  cursor: pointer;
  position: relative;
}

#postsContainer .card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, #3b82f6, #60a5fa, #93c5fd);
  opacity: 0;
  filter: blur(90px);
  transition: all 0.6s ease;
  z-index: 0;
  border-radius: 50%;
}

#postsContainer .card:hover::before {
  opacity: 0.12;
  transform: rotate(15deg);
}

#postsContainer .card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0,0,0,0.18);
}

/* ---------------- IMAGE ---------------- */
.card img {
  width: 100%;
  height: 320px; /* tall premium image */
  object-fit: cover;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.6s ease, filter 0.5s ease;
}

.card:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* ---------------- CARD BODY ---------------- */
.card-body {
  padding: 20px 24px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.card:hover .card-body {
  transform: translateY(-3px);
}

h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 12px;
  margin-bottom: 10px;
  color: #111827;
}

.card-text {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.8;
  margin-top: 6px;
}

/* ---------------- USER ROW ---------------- */
.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.avatar {
  width: 44px;
  height: 44px;
  background: #3b82f6;
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.35s ease;
}

.card:hover .avatar {
  transform: scale(1.15) rotate(5deg);
}

h6 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

small {
  font-size: 12px;
  color: #6b7280;
}

/* ---------------- READ MORE ---------------- */
.read-more {
  display: inline-block;
  margin-top: 14px;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.read-more:hover {
  text-decoration: underline;
  color: #2563eb;
}

/* ---------------- CARD ANIMATION ---------------- */
#postsContainer .card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 500px) {
  .feed-wrapper {
    width: 95%;
    margin: 20px auto;
  }

  .avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  h3 {
    font-size: 16px;
  }

  .card-text {
    font-size: 14px;
  }
}

body {
  background: linear-gradient(135deg, #e8edf3, #f7f9fc);
  font-family: "Inter", sans-serif;
}

.post-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 30px;
  width: 100%;
  max-width: 420px;
  border: 1px solid #e2e8f0;
}

.post-card h3 {
  color: #2c3e50;
  font-weight: 600;
}

/* Inputs */
.custom-input {
  border-radius: 12px;
  border: 1px solid #cfd8e3;
  padding: 12px;
  transition: all 0.3s ease;
}

.custom-input:focus {
  border-color: #4f83ff;
  box-shadow: 0 0 0 4px rgba(79, 131, 255, 0.15);
}

/* Button */
.post-btn {
  background: linear-gradient(135deg, #4f83ff, #3b6eea);
  color: white;
  padding: 12px;
  border-radius: 14px;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(79, 131, 255, 0.35);
}

/* Entry animation */
.animate-entry {
  animation: fadeSlide 0.7s ease forwards;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ---------------- EDIT/DELETE BUTTONS ---------------- */
.card .btn-outline-warning,
.card .btn-outline-danger {
  font-weight: 600;
  border-radius: 10px;
  padding: 6px 14px;
  transition: all 0.3s ease;
}

.card .btn-outline-warning:hover {
  background: #facc15;
  border-color: #facc15;
  color: #1f2937;
}

.card .btn-outline-danger:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}


















