@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap");

:root {
  --dewadarkgreen: #006837;
  --dewadarkgreen-hover: #004d26;
  --dewagreen-light: #058240;
  --dewagreen-bright: #00e676;
}

@keyframes radiumLineGlow {
  0% {
    border-color: rgba(0, 230, 118, 0.4);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.35), 0 15px 35px rgba(0, 0, 0, 0.3);
  }

  50% {
    border-color: #00e676;
    box-shadow: 0 0 28px rgba(0, 230, 118, 0.85), 0 0 50px rgba(0, 104, 55, 0.6), 0 15px 40px rgba(0, 0, 0, 0.4);
  }

  100% {
    border-color: rgba(0, 230, 118, 0.4);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.35), 0 15px 35px rgba(0, 0, 0, 0.3);
  }
}

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

body.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 20px 15px;
  position: relative;
  background-color: #0b130e;
  overflow-x: hidden;
}

/* Outer Section for Header & Footer integration */
.glass-auth-main-wrapper {
  position: relative;
  background-color: #0b130e;
  background-image:
    url("/home/images/dewasharif/namazz.jpg"),
    url("/home/images/dewasharif/login-bg.jpg");
  background-position: center center;
  background-size: 100% 100% !important;
  background-repeat: no-repeat;
  padding: 45px 15px 65px 15px;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

/* Strict Isolation for .glass-auth-wrapper from Bootstrap & Site CSS */
.glass-auth-wrapper * {
  box-sizing: border-box !important;
}

.glass-auth-wrapper label {
  margin-bottom: 0 !important;
  display: flex !important;
}

.glass-auth-wrapper input[type="text"],
.glass-auth-wrapper input[type="password"],
.glass-auth-wrapper input[type="email"],
.glass-auth-wrapper input[type="tel"] {
  height: 36px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 14px !important;
}

.glass-auth-wrapper input:-webkit-autofill,
.glass-auth-wrapper input:-webkit-autofill:hover,
.glass-auth-wrapper input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

.glass-auth-wrapper a {
  color: #ffffff !important;
  text-decoration: none !important;
}

.glass-auth-wrapper a:hover {
  color: var(--dewagreen-bright) !important;
  text-decoration: underline !important;
}

.glass-auth-wrapper p {
  margin-bottom: 0 !important;
}

/* Background Collage Image - Layer 1 (z-index: -3) */
body.auth-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    url("/home/images/dewasharif/namazz.jpg"),
    url("/home/images/dewasharif/login-bg.jpg");
  background-position: center center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: -3;
  filter: brightness(0.9) contrast(1.05);
}

@media (max-width: 768px) {
  body.auth-page::before {
    background-size: cover;
  }
}

/* Orb container disabled */
.orb-container {
  display: none !important;
}

/* Clean 100% Transparent Glass Wrapper with Thin Radium Green Glowing Outer Border */
.glass-auth-wrapper {
  width: 100%;
  max-width: 520px;
  min-height: 540px;
  border-radius: 16px;
  padding: 30px 32px;
  text-align: left;
  background: rgba(0, 0, 0, 0.12) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: #ffffff;
  transition: all 0.3s ease;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 10;

  /* Thin Outer Radium Green Border Frame ONLY */
  border: 1.5px solid #00e676 !important;
  animation: radiumLineGlow 2.5s ease-in-out infinite;
}

.glass-auth-wrapper::-webkit-scrollbar {
  width: 4px;
}

.glass-auth-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.glass-auth-wrapper.register-box-wide {
  max-width: 560px;
  min-height: 540px;
}

.dewa-logo-header {
  text-align: center;
  margin-bottom: 12px;
}

.dewa-logo-header a {
  text-decoration: none;
  display: inline-block;
}

.dewa-logo-header img {
  height: 72px;
  width: 72px;
  object-fit: cover;
  object-position: center bottom;
  border-radius: 50%;
  border: 2px solid var(--dewagreen-bright);
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.5), 0 4px 10px rgba(0, 0, 0, 0.5);
  margin-bottom: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #ffffff;
  transform: scale(1.05);
}

.dewa-logo-header a:hover img {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.8), 0 6px 15px rgba(0, 0, 0, 0.6);
}

/* Titles: White Default -> Bright Green Hover */
.dewa-title {
  font-family: 'Outfit', sans-serif;
  font-size: 32px !important;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 4px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  cursor: pointer;
}

.dewa-title:hover,
.dewa-logo-header a:hover .dewa-title {
  color: var(--dewagreen-bright);
  text-shadow: 0 2px 12px rgba(0, 230, 118, 0.8);
}

.dewa-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px !important;
  margin-bottom: 14px;
  transition: color 0.3s ease;
}

.dewa-subtitle:hover {
  color: var(--dewagreen-bright);
}

.dewa-notice {
  background: rgba(0, 0, 0, 0.20);
  border-left: 4px solid var(--dewagreen-bright);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 15px !important;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.45;
}

.dewa-notice a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.dewa-notice a:hover {
  color: var(--dewagreen-bright) !important;
}

.input-field {
  position: relative;
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  margin: 28px 0 16px 0;
  transition: all 0.25s ease;
}

.input-field:focus-within {
  border-bottom-color: var(--dewagreen-bright);
  box-shadow: 0 2px 10px rgba(0, 230, 118, 0.5);
}

.input-field label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  color: #ffffff !important;
  font-size: 16px !important;
  pointer-events: none;
  transition: 0.2s ease all;
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.input-field input,
.input-field select,
.input-field textarea {
  width: 100%;
  height: 42px !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  font-size: 16px !important;
  color: #ffffff !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.input-field select option {
  background: #0f172a;
  color: #ffffff;
}

.input-field input:focus~label,
.input-field input:not(:placeholder-shown)~label,
.input-field select:focus~label,
.input-field select:valid~label {
  font-size: 13.5px !important;
  top: -4px;
  transform: translateY(-100%);
  color: var(--dewagreen-bright) !important;
  font-weight: 600;
}

.forget-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 16px 0;
  color: #ffffff;
  font-size: 15.5px !important;
}

.forget-row label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.forget-row input[type="checkbox"] {
  accent-color: var(--dewagreen-bright);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.forget-row label p {
  margin-left: 8px;
  margin-bottom: 0;
  font-size: 15.5px !important;
}

/* Links: Default White -> Hover Green */
.glass-auth-wrapper a {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.glass-auth-wrapper a:hover {
  color: var(--dewagreen-bright) !important;
  text-decoration: underline;
}

/* Primary Button */
.btn-glass-primary {
  background: var(--dewadarkgreen);
  color: #ffffff;
  font-weight: 700;
  border: 1px solid var(--dewagreen-light);
  padding: 12px 20px !important;
  height: 48px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 17px !important;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 104, 55, 0.5);
  letter-spacing: 0.3px;
}

.btn-glass-primary i,
.btn-glass-primary svg {
  color: #ffffff;
  font-size: 19px !important;
  transition: all 0.3s ease;
}

.btn-glass-primary:hover {
  background: var(--dewagreen-bright);
  color: var(--dewadarkgreen-hover);
  border-color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.6);
  transform: translateY(-2px);
}

.btn-glass-primary:hover i,
.btn-glass-primary:hover svg {
  color: var(--dewadarkgreen-hover);
}

/* Google Button */
.btn-glass-google {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 11px 20px !important;
  height: 48px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 16px !important;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  text-decoration: none !important;
  margin-top: 10px;
}

.btn-glass-google:hover {
  background: var(--dewadarkgreen);
  color: #ffffff !important;
  border-color: var(--dewagreen-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 104, 55, 0.6);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0 14px 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px !important;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-divider span {
  padding: 0 12px;
}

.register-footer {
  text-align: center;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px !important;
}

.alert-glass-danger {
  background: rgba(225, 29, 72, 0.45);
  border: 1px solid rgba(244, 63, 94, 0.7);
  color: #ffffff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px !important;
  margin-bottom: 14px;
}

.alert-glass-success {
  background: rgba(16, 185, 129, 0.45);
  border: 1px solid rgba(52, 211, 153, 0.7);
  color: #ffffff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px !important;
  margin-bottom: 14px;
}

.forgot-info-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
  text-align: center;
  font-size: 15px !important;
  color: rgba(255, 255, 255, 0.95);
}

.forgot-info-box i {
  font-size: 26px !important;
  color: var(--dewagreen-bright);
  display: block;
  margin-bottom: 8px;
}

.auth-info-card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 10px 0 14px 0;
}

.security-tips-box {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(0, 0, 0, 0.18);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 14px;
  font-size: 14.5px !important;
  color: rgba(255, 255, 255, 0.95);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 768px) {
  .glass-auth-main-content {
    padding: 30px 12px;
  }

  .glass-auth-wrapper,
  .glass-auth-wrapper.register-box-wide {
    max-width: 100%;
    height: auto;
    min-height: 480px;
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {

  .glass-auth-wrapper,
  .glass-auth-wrapper.register-box-wide {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .form-control-glass {
    height: 44px;
    font-size: 15px !important;
  }
}