/* Crizzio Professional Login - Clean Modern Design */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --primary: #d72660;
  --primary-light: #f1c7df;
  --primary-very-light: #fff6fa;
  --primary-dark: #b91e50;
  --secondary: #ff77a9;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f9f9f9;
  --subtle-gray: #f3f3f3;
  --border-color: #e0e0e0;
  --shadow-soft: 0 8px 30px rgba(215, 38, 96, 0.08);
  --shadow-medium: 0 10px 30px rgba(215, 38, 96, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', 'Segoe UI', Roboto, sans-serif;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, #fff2f8 0%, #ffeef4 35%, #ffe7f1 55%, #ffeef4 70%) fixed;
  position: relative;
  overflow-x: hidden;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Soft ambient gradient blobs */
body::before, body::after {
  content: '';
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  z-index: -2;
  pointer-events: none;
  animation: floatBlob 18s linear infinite;
}
body::before { top: -120px; left: -160px; background: linear-gradient(135deg,#ffd2e4,#ffa6c6); }
body::after { bottom: -160px; right: -140px; background: linear-gradient(135deg,#ffc4db,#ffe2ef); animation-direction: reverse; }
@keyframes floatBlob { 0% { transform: translateY(0) scale(1);} 50% { transform: translateY(40px) scale(1.05);} 100% { transform: translateY(0) scale(1);} }

.page-wrapper {
  flex: 1; /* fill remaining height */
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: flex-end; /* push login box toward bottom to consume empty space */
  padding: 30px 20px 8px; /* tighter bottom gap */
}

/* Decorative elements */
.decorative-circle {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.decorative-circle:nth-child(1) {
  width: 300px;
  height: 300px;
  background-color: rgba(241, 199, 223, 0.3);
  top: -150px;
  right: -100px;
}

.decorative-circle:nth-child(2) {
  width: 200px;
  height: 200px;
  background-color: rgba(255, 119, 169, 0.15);
  bottom: -100px;
  left: -80px;
}

/* Login container */
.login-container {
  width: 100%;
  max-width: 400px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
  animation: fadeIn 0.5s ease forwards;
  backdrop-filter: blur(6px) saturate(120%);
}

.login-container::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px; /* gradient border */
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(215,38,96,0.45), rgba(255,255,255,0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; /* Safari */
  mask-composite: exclude;
  pointer-events: none;
  opacity: .6;
}

.login-container:hover::before { opacity: .85; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header section */
.login-header {
  padding: 30px;
  text-align: center;
  position: relative;
}

.login-header h2 {
  color: var(--primary);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.login-header p {
  color: var(--text-dark);
  font-size: 14px;
  opacity: 0.7;
}

/* Header accent line */
.header-accent {
  height: 5px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4), 0 4px 14px -2px rgba(215,38,96,0.35);
}

/* Form section */
.login-form {
  padding: 0 30px 30px;
}

.form-group {
  position: relative;
  margin-bottom: 24px;
  transition: transform .35s cubic-bezier(.4,.18,.2,1);
}

.input-focused { transform: translateY(-2px); }

.form-label {
  display: block;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1;
}

.form-control {
  width: 100%;
  height: 50px;
  background: linear-gradient(#ffffff,#ffffff) padding-box, linear-gradient(120deg,#f5d8e6,#ffeef5) border-box;
  border:2px solid transparent;
  border-radius: 8px;
  padding: 0 15px;
  font-size: 15px;
  color: var(--text-dark);
  transition: all 0.3s ease;
  line-height: normal;
  display: flex;
  align-items: center;
}

.form-control:hover { box-shadow: 0 0 0 3px rgba(215,38,96,0.07); }

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(215, 38, 96, 0.1);
  background: linear-gradient(#ffffff,#ffffff) padding-box, linear-gradient(120deg,#d72660,#ff8ab7) border-box;
}

/* Special padding for password input to accommodate the eye icon */
input[type="password"].form-control {
  padding-right: 55px;
  font-size: 20px; /* Larger size for password dots */
  font-weight: bold; /* Bolder password dots */
  letter-spacing: 2px; /* Spacing between dots */
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 31px; /* Precise positioning for perfect vertical center */
  cursor: pointer;
  color: #777;
  transition: background .3s, color .3s, transform .35s cubic-bezier(.34,1.56,.34,1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: transparent;
  padding: 0;
  margin: 0;
  z-index: 2;
}

.password-toggle:hover {
  color: var(--primary);
  background-color: rgba(215, 38, 96, 0.08);
}

.password-toggle:active { transform: scale(.85); }

/* Input focus styles */
.input-focused .form-control {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(215, 38, 96, 0.1);
}

.input-focused .form-label {
  color: var(--primary);
}

/* Submit button */
.login-btn {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg,var(--primary) 0%, var(--primary-dark) 70%);
  border: none;
  border-radius: 8px;
  color: var(--text-light);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  letter-spacing:.03em;
  box-shadow: 0 6px 18px -4px rgba(215,38,96,.45);
}

.login-btn:hover {
  background: linear-gradient(135deg,var(--primary-dark) 0%, var(--primary) 85%);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -6px rgba(215,38,96,.5);
}

.login-btn:active {
  transform: translateY(1px) scale(.985);
}

/* Button hover effect */
.login-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.4s ease;
  mix-blend-mode: overlay;
}

.login-btn:hover::after {
  left: 100%;
}

/* Error messages */
.error-message {
  background-color: rgba(255, 82, 82, 0.1);
  color: #ff5252;
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  border-left: 4px solid #ff5252;
}

/* Info box section */
.info-box {
  margin-top: 30px;
  background: linear-gradient(135deg,#ffffff 0%, #f9f9fb 55%, #fff7fb 100%);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 8px 24px -6px rgba(50,8,25,0.08), 0 2px 6px rgba(215,38,96,0.08);
  position: relative;
  overflow:hidden;
}

.info-box::after {
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 85% 15%, rgba(215,38,96,0.08), transparent 60%);
  pointer-events:none;
}

/* Title class kept for compatibility with other pages */
.info-box-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--primary);
  letter-spacing: -0.02em;
  display: none;
}

.info-box-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 15px;
  letter-spacing: 0.01em;
  padding-top: 0;
}

.info-box-text strong {
  color: #222;
  font-weight: 600;
  background: linear-gradient(120deg,#222,#444);
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

.phone-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.phone-link::after {
  content:'';
  position:absolute;
  left:0;
  bottom:-2px;
  height:2px;
  width:0;
  background: linear-gradient(90deg,var(--primary), var(--secondary));
  transition: width .4s;
  border-radius:2px;
}

.phone-link:hover {
  text-decoration: underline;
}

.phone-link:hover::after { width:100%; }

/* Contact buttons */
.contact-btns {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.wa-btn, .call-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  letter-spacing: 0.02em;
  position:relative;
  overflow:hidden;
}

.wa-btn::after, .call-btn::after {
  content:'';
  position:absolute;
  top:50%;
  left:50%;
  width:0;
  height:0;
  background:rgba(255,255,255,.4);
  border-radius:50%;
  transform:translate(-50%,-50%);
  transition: width .6s ease, height .6s ease, opacity .8s;
  opacity:0;
}

.wa-btn:hover::after, .call-btn:hover::after {
  width:260%;
  height:260%;
  opacity:0;
}

@keyframes softPulse { 
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.45);} 
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0);} 
  100% { box-shadow:0 0 0 0 rgba(37,211,102,0);} 
}

.wa-btn {
  background-color: #25D366; /* Original WhatsApp green */
  color: white;
  animation: softPulse 4.5s ease-in-out infinite;
}

.wa-btn:hover {
  background-color: #1fad53;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.call-btn {
  background: linear-gradient(135deg,var(--primary), var(--primary-dark));
  color: white;
}

.call-btn:hover {
  background: linear-gradient(135deg,var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.wa-icon {
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

/* Footer section - sits at natural document end, flex pushes it to bottom when page short */
.login-footer {
  text-align: center;
  padding: 15px 0;
  background: linear-gradient(90deg,#fafafa,#fff3f8);
  color: #777;
  font-size: 13px;
  width: 100%;
  max-width: 100%;
  box-shadow: var(--shadow-soft);
  border-top:1px solid #f2d6e2;
  letter-spacing: 0.02em;
  font-weight: 500;
  animation: fadeIn 0.8s ease forwards;
  margin-top: auto; /* ensures footer is pushed to bottom when content is short */
}

/* Responsive styles */
@media (max-width: 480px) {
  .page-wrapper {
    padding: 22px 15px 6px; /* even smaller gap on mobile */
    align-items: flex-end;
  }
  
  .login-header {
    padding: 25px 20px;
  }
  
  .login-header h2 {
    font-size: 24px;
  }
  
  .login-form {
    padding: 0 20px 25px;
  }
  
  .contact-btns {
    flex-direction: column;
  }
  
  .login-footer {
    padding: 12px 15px;
    font-size: 11px;
  }

  .login-container::before { opacity: .9; }

  .info-box { padding:20px; }
}
