:root {
  --primary: #ffffff;
  --secondary: #0f172a;
  --accent: #42a5f5;

  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.15);

  --blur: blur(14px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Rubik", sans-serif;
}

body {
  height: 100vh;
  overflow: hidden;
  color: var(--primary);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1483728642387-6c3bdd6c93e5?auto=format&fit=crop&w=2076&q=80") center/cover no-repeat;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.35);
  z-index: -1;
}

.login-container {
  width: 100%;
  max-width: 400px;     
  margin: 80px auto;     
  padding: 30px;

  background: var(--glass);
  backdrop-filter: var(--blur);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);

  display: flex;
  flex-direction: column;
  gap: 15px;
}

.dashboard-container {
  width: 100%;
  height: 100vh;
  padding: 40px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  height: 100%;
  align-items: center;
}

.weather-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 80%;
  padding: 30px;
  border-radius: 20px;

  background: var(--glass);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(255,255,255,0.1);
}


.logo {
  position: absolute;
  top: 30px;
  left: 40px;
  font-size: 18px;
  letter-spacing: 2px;
  opacity: 0.8;
}


#clock {
  font-size: 64px;
  font-weight: 600;
  margin-bottom: 10px;
}


.card h2 {
  font-size: 80px;
  color: white;
}

.card p {
  font-size: 30px;
  color: rgba(255,255,255,0.7);
}


input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;

  background: var(--glass);
  color: white;
  backdrop-filter: var(--blur);
}

input::placeholder {
  color: rgba(255,255,255,0.5);
}

button {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: none;

  background: var(--glass-strong);
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.character-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.character {
  position: relative;
  height: 85vh;
  aspect-ratio: 1 / 1;
}

.dashboard-image {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%); 

  height: 100%;
  width: auto; 

  object-fit: contain;
  pointer-events: none;

  transition: opacity 0.25s ease;
}


.dashboard-image:first-child {
  z-index: 1; 
}

#layer-pants {
  z-index: 2;
}

#layer-top {
  z-index: 3;
}

#layer-accessory {
  z-index: 4;
}


.account-panel {
  display: flex;
  flex-direction: column;
  gap: 15px;

  
  background: var(--glass);
  backdrop-filter: var(--blur);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);

  padding: 15px;

  width: fit-content;        
  height: fit-content;       

  justify-self: end;        
  align-self: center;       
}
.account-panel button {
  width: 60px;
  height: 60px;
  border-radius: 50%;

  background: var(--glass);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(255,255,255,0.1);

  display: flex;           
  justify-content: center;   
  align-items: center;        
  overflow: hidden;           
}

.account-panel button img {
  width: 24px;              
  height: 24px;           
  object-fit: contain;       
  filter: invert(1);         
}

.account-panel button:hover {
  background: rgba(255,255,255,0.25);
}

.weather-panel,
.account-panel {
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}


@media (max-width: 900px) {

  .dashboard-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .character-panel {
    order: -1;
  }

  .dashboard-image {
    height: 40vh;
  }

  .weather-panel {
    height: auto;
  }

  .logo {
    font-size: 14px;
  }

  .weather-panel::before {
    font-size: 40px;
  }
}
