@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@700&display=swap');

:root {
  --vh: 1vh;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body {
  position: relative;
  overflow-y: auto !important; /* Force scrollability */
  display: flex;
  flex-direction: column;
}

/* Fix scrolling issues in left panel */

.rudeclub-left {
  width: 50%;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
}


/* RIGHT SIDE */
.rudeclub-right {
  width: 50%;
  height: 100%;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  flex-shrink: 0;
  animation: zoomSlow 40s ease-in-out infinite alternate;
}

/* Allow form container to scroll properly if content is tall */
.rudeclub-box {
  width: 100%;
  max-width: 420px;
  flex: 0 0 auto;
}

.rudeclub-heading {
  font-family: 'Bodoni Moda', serif;
  font-size: 2.3em;
  font-weight: 700;
  line-height: 120%;
  margin: 0 0 30px 0;
  text-align: center;
  text-transform: uppercase;
}

.rudeclub-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  min-height: 48px; /* Prevents collapse */
  width: 100%;
}

.rudeclub-tab {
  flex: 1 1 auto;
  min-width: 120px;
  text-align: center;
  padding: 10px 20px;
  background: #eee;
  border: none;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  box-sizing: border-box;
}

.rudeclub-tab.active {
  background-color: #a12e2e;
  color: #fff;
}

.rudeclub-form {
  animation: fadeIn 0.3s ease-in-out;
}

/* Back link */
.rudeclub-back-wrapper {

  display: block;
  margin-bottom: 15px;
}

.rudeclub-back-link {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #a12e2e;
  text-decoration: none;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 10px;
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.rudeclub-back-link:hover {
  background: rgba(255, 255, 255, 1);
  color: #800000;
}

.rudeclub-back-link i {
  font-size: 14px;
  margin: 0;
  line-height: 1;
}

/* ABU red button styling */
.rudeclub-box input[type="submit"],
.rudeclub-box button[type="submit"],
.rudeclub-box .um-button {
  background-color: #a12e2e !important;
  border: none !important;
  color: #fff !important;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
}

.rudeclub-box input[type="submit"]:hover,
.rudeclub-box button[type="submit"]:hover,
.rudeclub-box .um-button:hover {
  background-color: #a30000 !important;
}

/* Compact register form */
.um.um-register .um-field {
  margin-bottom: 16px !important;
}

.um.um-register .um-field-label {
  font-size: 14px;
  margin-bottom: 4px;
  font-weight: 600;
}

.um.um-register .um-field-area input,
.um.um-register .um-field-area textarea,
.um.um-register .um-field-area select {
  padding: 8px 12px !important;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
}

.um.um-register .um-field-icon {
  display: none;
}

.um.um-register .um-field-area-password {
  display: flex;
  align-items: center;
}

.um.um-register .um-toggle-password {
  margin-left: 10px;
  cursor: pointer;
  font-size: 16px;
  color: #888;
}

.um.um-register .um-field-type_terms_conditions {
  font-size: 14px;
  padding: 10px 0;
}

.um.um-register .um-field-type_terms_conditions .um-toggle-gdpr {
  display: inline-block;
  font-size: 13px;
  margin-top: 8px;
  color: #444;
  text-decoration: underline;
  cursor: pointer;
}

.um.um-register .um-field-checkbox-option {
  font-size: 13px;
  margin-left: 8px;
}

.um.um-register .um-button {
  background-color: #a12e2e !important;
  color: white !important;
  border: none !important;
  font-weight: bold;
  font-size: 15px;
  padding: 10px 20px;
  width: 100%;
  border-radius: 4px;
  transition: background 0.2s ease-in-out;
}

.um.um-register .um-button:hover {
  background-color: #a30000 !important;
}



@keyframes zoomSlow {
  0% { transform: scale(1); }
  100% { transform: scale(1.07); }
}

.rudeclub-photo-credit {
  position: absolute;
  bottom: max(10px, env(safe-area-inset-bottom));
  right: 15px;
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, 0.85);
  padding: 4px 8px;
  border-radius: 3px;
  z-index: 2;
}

/* Overlay text */
.rudeclub-overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 30px;
  box-sizing: border-box;
  opacity: 0;
  animation: fadeInOverlay 1s ease forwards;
  text-align: left;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rudeclub-overlay-text > div {
  max-width: 460px;
}

.rudeclub-overlay-text h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.rudeclub-overlay-text p {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.rudeclub-overlay-text ul {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  padding-left: 20px;
  margin: 0;
}

.rudeclub-overlay-text ul li {
  margin-bottom: 6px;
}

/* WRAPPER takes full height and uses column layout on mobile if needed */
.rudeclub-wrapper {
  display: flex;
  width: 100%;
  height: 100dvh; /* prevents toolbar issues on mobile */
  overflow: hidden;
}




/* Fade-in animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* MOBILE & LAPTOP FRIENDLY FIXES */
@media (max-width: 1024px) {
  html,
  body {
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
    margin: 0;
    padding: 0;
  }

  .rudeclub-wrapper {
    flex-direction: column;
    height: auto;
    width: 100%;
  }

  .rudeclub-left {
    width: 100%;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    background: #fff;
  }

  .rudeclub-box {
    width: 100%;
    max-width: 420px;
    flex: 0 0 auto;
    margin: 0 auto;
  }

  .rudeclub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
    min-height: 48px;
    width: 100%;
  }

  .rudeclub-tab {
    min-width: 100px;
    font-size: 15px;
    text-align: center;
  }

  .rudeclub-heading {
    font-size: 1.7em;
    margin-top: 10px;
    text-align: center;
  }

  .rudeclub-right {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
  }

  .rudeclub-overlay-text {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
  }

  .rudeclub-back-wrapper {
    padding: 0 10px;
    margin-bottom: 20px;
  }

  .rudeclub-form {
    padding-bottom: 30px;
    width: 100%;
  }

  .um.um-register,
  .um.um-login {
    display: block;
    min-height: auto !important;
  }

  .um-form {
    overflow-y: visible !important;
  }
}

/* Ensure tabs look correct on mid-sized screens */
@media (min-width: 768px) {
  .rudeclub-tabs {
    padding-top: 10px;
    margin-top: 30px !important;
    z-index: 10;
  }
}
