/* Signup Page Custom Styles */
:root {
    --primary-black: #121212;
    --secondary-black: #1E1E1E;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --header-height: 70px;
    --color-black-rgb: 18, 18, 18;
    --color-white-rgb: 255, 255, 255;
    --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --heading-font: "Raleway", sans-serif;
    --nav-font: "Inter", sans-serif;
    --nav-color: var(--white);
    --nav-hover-color: rgba(255, 255, 255, 0.8);
    --nav-dropdown-background-color: var(--white);
    --nav-dropdown-color: var(--primary-black);
    --nav-dropdown-hover-color: var(--secondary-black);
    --nav-mobile-background-color: var(--white);
}

/* Ensure full viewport coverage */
html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.signup-page {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/home\ pages\ background.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Container for better organization */
.main {
    min-height: calc(100vh - var(--header-height));
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 20px) 20px 20px;
    position: relative;
    z-index: 1;
}

.signup.section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Responsive background adjustments */
@media (max-width: 576px) {
    body.signup-page {
        padding: 10px;
    }
}

@media (min-width: 577px) and (max-width: 992px) {
    body.signup-page {
        padding: 20px;
    }
}

@media (min-width: 993px) {
    body.signup-page {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    body.signup-page {
        background-attachment: scroll;
    }
    
    .main {
        padding-top: calc(var(--header-height) + 10px);
        padding-bottom: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .main {
        padding-top: calc(var(--header-height) + 30px);
    }
}

@media (min-width: 1201px) {
    .main {
        padding-top: calc(var(--header-height) + 40px);
    }
}

/* Responsive Form Sizing */
.signup-form {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin-top: 100px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Screen-specific sizing */
@media (max-width: 576px) {
    .signup-form {
        padding: 25px;
        margin-top: 80px;
        width: 90%;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .signup-form {
        width: 90%;
        max-width: 500px;
        padding: 30px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .signup-form {
        width: 70%;
        max-width: 600px;
        padding: 40px;
    }
}

@media (min-width: 993px) and (max-width: 1200px) {
    .signup-form {
        width: 60%;
        max-width: 650px;
        padding: 40px;
    }
}

@media (min-width: 1201px) {
    .signup-form {
        width: 500px;
        max-width: 600px;
        padding: 40px;
    }
}

/* Ensure consistent form behavior */
.signup-form * {
    box-sizing: border-box;
}

/* Responsive typography */
@media (max-width: 576px) {
    .signup-form h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .signup-form .form-label {
        font-size: 13px;
    }
    
    .signup-form .form-control, 
    .signup-form .btn {
        font-size: 13px;
        padding: 7px 10px;
    }
}

@media (min-width: 577px) and (max-width: 992px) {
    .signup-form h2 {
        font-size: 24px;
    }
    
    .signup-form .form-label {
        font-size: 14px;
    }
    
    .signup-form .form-control, 
    .signup-form .btn {
        font-size: 14px;
        padding: 8px 12px;
    }
}

@media (min-width: 993px) {
    .signup-form h2 {
        font-size: 24px;
    }
    
    .signup-form .form-label {
        font-size: 14px;
    }
    
    .signup-form .form-control, 
    .signup-form .btn {
        font-size: 14px;
        padding: 8px 12px;
    }
}

.signup-form:hover {
    transform: scale(1.02);
}

.signup-form h2 {
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
}

.form-control {
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.form-control:focus {
    background-color: var(--white);
    border-color: var(--primary-black);
    box-shadow: 0 0 0 0.25rem rgba(18, 18, 18, 0.1);
}

.signup-form .btn-primary {
  background: #121212;
  border-color: #121212;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
}

.signup-form .btn-primary:hover {
  background: #1e1e1e;
  border-color: #1e1e1e;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.signup-form .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.signup-form .btn-danger {
    background: white;
    border: 1px solid #ddd;
    color: #333;
    font-size: 14px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.signup-form .btn-danger:hover {
    background: #f8f9fa;
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.signup-form .btn-danger .bi-google {
    color: #DB4437;
    margin-right: 8px;
}

.signup-form p {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
}

.signup-form a {
    color: #ff0000;
    text-decoration: none;
    font-weight: 500;
}

.signup-form a:hover {
    color: #c41530;
}

.signup-form .bi {
    margin-right: 8px;
}

/* Form row spacing */
.signup-form .row {
    margin-bottom: 10px;
}

.signup-form .col-md-6 {
    padding: 0 8px;
}

/* Terms and conditions checkbox */
.signup-form .form-check {
    margin: 15px 0;
}

.signup-form .form-check-label {
    font-size: 14px;
    color: #666;
}

.signup-form .form-check-input {
    margin-top: 0.2em;
}

/* Fluid typography for better responsiveness */
html {
    font-size: 16px;
}

@media (min-width: 320px) {
    html {
        font-size: calc(16px + 6 * ((100vw - 320px) / 680));
    }
}

@media (min-width: 1000px) {
    html {
        font-size: 22px;
    }
}

/* Ensure proper scaling and sizing */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

/* Header specific styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    height: var(--header-height);
    border-bottom: 1px solid rgba(var(--color-white-rgb), 0.1);
    padding: 15px 0;
}

/* Header Logo and Title Styles */
.header .logo {
    text-decoration: none;
    transition: 0.3s;
}

.header .logo .logo-img {
    height: 60px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.header .logo .sitename {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    font-family: var(--heading-font);
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .header .logo .logo-img {
        height: 50px;
        margin-right: 10px;
    }
    .header .logo .sitename {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .header .logo .sitename {
        font-size: 18px;
    }
}

/* Navigation Menu */
.navmenu {
    padding: 0;
    margin-left: auto;
}

.navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
    gap: 5px;
}

.navmenu a {
    display: inline-block;
    position: relative;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--nav-font);
    padding: 10px 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
    text-transform: capitalize;
}

.navmenu a:hover,
.navmenu .active {
    color: var(--white);
    transform: translateY(-2px);
    opacity: 1;
}

/* Underline animation */
.navmenu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    opacity: 0;
}

.navmenu a:hover::after,
.navmenu .active::after {
    width: calc(100% - 30px);
    opacity: 1;
}

/* Hover glow effect */
.navmenu a:hover {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

@media (max-width: 1279px) {
    .navmenu {
        display: none;
    }
}

/* Homepage-style Navigation */
.navmenu ul {
  margin: 0;
  padding: 0;
  display: flex;
}

.navmenu .dropdown {
  position: relative;
}

.navmenu .dropdown ul {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 99;
}

.navmenu .dropdown:hover > ul {
  display: block;
}

@media (max-width: 1279px) {
  .navmenu {
    position: fixed;
    right: -100%;
    top: 0;
    width: 300px;
    height: 100vh;
    background-color: var(--nav-mobile-background-color);
    padding: 40px;
    z-index: 9999;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow-y: auto;
  }

  .navmenu-active {
    right: 0;
  }
}

@media (max-width: 768px) {
    .header .logo .logo-img {
        height: 50px;
        margin-right: 10px;
    }
    
    .header .logo .sitename {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .header .logo .sitename {
        font-size: 14px;
    }
}

/* Mobile nav toggle */
.mobile-nav-toggle {
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    display: none;
    line-height: 0;
    transition: 0.5s;
    position: relative;
    z-index: 9996;
}

@media (max-width: 1279px) {
    .mobile-nav-toggle {
        display: block;
    }

    .navmenu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 400px;
        bottom: 0;
        transition: 0.3s;
        z-index: 9997;
    }

    .navmenu ul {
        position: absolute;
        inset: 0;
        padding: 50px 0 10px 0;
        margin: 0;
        background: rgba(0, 0, 0, 0.8);
        overflow-y: auto;
        transition: 0.3s;
        z-index: 9998;
    }
}
