/* =========================
   RESET & BASE
========================= */
* {
  box-sizing: border-box;
  outline: none;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  background: #f6f5f7;
  overflow: hidden;
}

/* =========================
   VIEWS
========================= */
.view-section {
  display: none;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
  position: relative;
}

.view-section.active {
  display: flex;
}

/* =========================
   AUTH CONTAINER
========================= */
.container {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #fff;
  overflow: hidden;
}

form {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 10%;
  height: 100%;
  text-align: center;
}

input {
  background: #eee;
  border: none;
  padding: 12px 15px;
  margin: 8px 0;
  width: 100%;
  max-width: 400px;
  border-radius: 5px;
  font-size: 14px;
}

input:focus {
  background: #e2e2e2;
}

/* =========================
   BUTTONS
========================= */
button {
  border-radius: 20px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 12px 45px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s ease;
}

button:hover {
  opacity: 0.9;
}

button:active {
  transform: scale(0.95);
}

button.ghost {
  background: transparent;
  border-color: #fff;
}

/* =========================
   SOCIAL LOGIN (GOOGLE)
========================= */
.social-container {
  margin: 20px 0;
}

.social-container a,
.social-container a:visited,
.social-container a:active,
.social-container a:focus {
  background: none !important;
  border: none !important;
  color: #000 !important;
  text-decoration: none !important;
  display: inline-flex;
  margin: 0 15px;
  font-size: 30px;
  transition: 0.2s;
}

.social-container a:hover {
  transform: scale(1.1);
}

/* =========================
   AUTH ANIMATION LOGIC
========================= */
.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  transition: all 0.6s ease-in-out;
}

.sign-in-container {
  left: 0;
  z-index: 2;
}

.sign-up-container {
  left: 0;
  opacity: 0;
  z-index: 1;
}

.container.right-panel-active .sign-in-container {
  transform: translateX(100%);
}

.container.right-panel-active .sign-up-container {
  transform: translateX(100%);
  opacity: 1;
  z-index: 5;
  animation: show 0.6s;
}

@keyframes show {
  0%, 49.99% {
    opacity: 0;
    z-index: 1;
  }
  50%, 100% {
    opacity: 1;
    z-index: 5;
  }
}

/* =========================
   OVERLAY
========================= */
.overlay-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s ease-in-out;
  z-index: 100;
}

.container.right-panel-active .overlay-container {
  transform: translateX(-100%);
}

.overlay {
  background: #000;
  color: #fff;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay {
  transform: translateX(50%);
}

.overlay-panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 10%;
  text-align: center;
  top: 0;
  height: 100%;
  width: 50%;
}

.overlay-left {
  transform: translateX(-20%);
}

.container.right-panel-active .overlay-left {
  transform: translateX(0);
}

.overlay-right {
  right: 0;
}

.container.right-panel-active .overlay-right {
  transform: translateX(20%);
}

/* =========================
   DASHBOARD & SIDEBAR
========================= */
.navbar {
  position: absolute;
  top: 0;
  width: 100%;
  height: 70px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

.menu-icon {
  font-size: 24px;
  cursor: pointer;
}

.settings-panel {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100%;
  background: #fff;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  transition: right 0.4s ease-in-out;
  z-index: 2000;
}

.settings-panel.active {
  right: 0;
}

.settings-header {
  padding: 25px;
  background: #000;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.settings-body {
  padding: 30px;
}

.logout-btn {
  background: #ff4b2b !important;
  border: none;
  width: 100%;
}

/* =========================
   DASHBOARD CONTENT
========================= */
.dashboard-content {
  width: 100%;
  height: 100%;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-box,
.simple-card {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.simple-card {
  width: 400px;
}

/* =========================
   MISC
========================= */
hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 20px 0;
}

/* =========================
   RESPONSIVE (MOBILE)
========================= */
@media (max-width: 768px) {
  .overlay-container {
    display: none;
  }

  .form-container {
    width: 100%;
  }

  .container.right-panel-active .sign-in-container,
  .container.right-panel-active .sign-up-container {
    transform: translateX(0);
  }
}
