/* ============================================
   Soundrake — Global Styles
   ============================================ */

/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #202020;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  height: 100vh;
  background: #202020;
  color: #f5f5f5;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

/* ===== LOGIN CONTAINER ===== */
.login-container {
  width: 100%;
  max-width: 1325px;
  height: 96vh;
  max-height: 960px;
  overflow: hidden;
  border-radius: 34px;
  background: #171717;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .42);
  display: flex;
  flex-direction: column;
}

.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* ===== BRAND SIDE ===== */
.brand-side {
  background: #111111;
  padding: 48px 40px 40px 40px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.brand-side .brand-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ===== FORM SIDE ===== */
.form-side {
  padding: 48px 48px 40px 48px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #131313;
}

.form-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

/* ===== GOOGLE BUTTON ===== */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  background: #ffffff;
  color: #1a1a1a;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.google-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 77, 81, 0.2);
  background: #f8f8f8;
}

/* ===== DIVIDER ===== */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #555;
  font-size: 12px;
  margin: 24px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

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

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #aaa;
  margin-bottom: 6px;
}

.input-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #f5f5f5;
  font-size: 14px;
  outline: none;
}

.input-group input:focus {
  border-color: #ff4d51;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 77, 81, 0.1);
}

.input-group input::placeholder {
  color: #555;
}

/* ===== PRIMARY BUTTON ===== */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ff4d51, #ff1971);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 77, 81, 0.3);
}

/* ===== ORNAMENT ===== */
.ornament {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
}

.ornament span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #333;
}

.ornament span.active {
  background: linear-gradient(135deg, #ff4d51, #ff1971);
  width: 24px;
  border-radius: 4px;
}

/* ===== ALERT ===== */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
}

.alert.error {
  background: rgba(255, 77, 81, 0.1);
  border: 1px solid rgba(255, 77, 81, 0.2);
  color: #ff4d51;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .login-grid {
    grid-template-columns: 1fr;
  }
  .brand-side {
    display: none;
  }
  .form-side {
    padding: 32px 24px;
  }
  .form-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  body {
    padding: 0;
  }
  .login-container {
    border-radius: 0;
    height: 100vh;
    max-height: 100vh;
  }
  .form-side {
    padding: 24px 20px;
  }
}