/* index.css */

/* Global Variables */
:root {
  --primary-color: #d1bfae; /* Subtle coffee/cream tone */
  --primary-hover: #bda38b;
  --text-main: #f9f9f9;
  --text-muted: #d0d0d0;
  --glass-bg: rgba(20, 20, 20, 0.65);
  --glass-border: rgba(255, 255, 255, 0.15);
  --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  background-color: #111;
  background-image: 
    linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%),
    url('https://flegmatik.hr/ritual-shop/wp-content/uploads/2026/04/hero-ritual-scaled.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Layout Wrapper */
.content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

/* Glassmorphism Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 4rem 3rem;
  max-width: 600px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Logo */
.logo-container {
  margin-bottom: 2rem;
}

.logo {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

/* Typography */
.copy-container {
  margin-bottom: 3rem;
}

h1 {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

p {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 90%;
  margin: 0 auto;
}

/* Form Styles */
.form-container {
  width: 100%;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
  .input-group {
    flex-direction: row;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.4rem;
    transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  }
  
  .input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(209, 191, 174, 0.1);
  }
}

input[type="email"] {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 1rem 1.5rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: all var(--transition-smooth);
}

@media (min-width: 480px) {
  input[type="email"] {
    background: transparent;
    border: none;
    border-radius: 50px 0 0 50px;
  }
}

input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

button {
  background: var(--primary-color);
  color: #111;
  border: none;
  border-radius: 50px;
  padding: 1rem 2rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 160px;
}

button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Loader Animation inside Button */
.btn-loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(17, 17, 17, 0.3);
  border-bottom-color: #111;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  display: none;
}

.loading .btn-text {
  display: none;
}

.loading .btn-loader {
  display: inline-block;
}

@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* GDPR Checkbox */
.gdpr-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.gdpr-group input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--primary-color);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.gdpr-group label {
  cursor: pointer;
  line-height: 1.4;
}

.gdpr-group a {
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.2s;
}

.gdpr-group a:hover {
  text-decoration: underline;
  opacity: 0.8;
}


/* Form Messages */
.message {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  padding: 1rem;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.message.show {
  opacity: 1;
  transform: translateY(0);
}

.message.success {
  background: rgba(46, 213, 115, 0.15);
  color: #2ed573;
  border: 1px solid rgba(46, 213, 115, 0.3);
}

.message.error {
  background: rgba(255, 71, 87, 0.15);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.hidden {
  display: none;
}

/* Animations */
.fade-in {
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .glass-card {
    padding: 3rem 1.5rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
}
