
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    width: 100vw;
    background: url('/images/wallhaven-qz13pl.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.dashboard-bg {
    min-height: 100vh;
    width: 100vw;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* Optional: add a subtle pattern overlay */
    /* background-image: url('https://www.transparenttextures.com/patterns/cubes.png'), linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); */
    background-repeat: repeat, no-repeat;
    background-size: auto, cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

 .container {
            width: 100%;
            max-width: 360px;
            background: rgba(255, 255, 255, 0.13);
            border-radius: 20px;
            padding: 40px 30px;
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
            border: 3px solid transparent;
            background-clip: padding-box;
            position: relative;
            color: #fff;
        }
        .container::before {
            content: "";
            position: absolute;
            top: -3px; left: -3px; right: -3px; bottom: -3px;
            z-index: 0;
            border-radius: 23px;
            padding: 0;
            background: linear-gradient(135deg, #e0e0e0 0%, #b0b0b0 50%, #f8f8f8 100%);
            pointer-events: none;
        }
        .container > * {
            position: relative;
            z-index: 1;
        }
         .login-container {
            width: 100%;
            max-width: 360px;
            position: relative;
            background: rgba(255, 255, 255, 0.18);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);            
            border-radius: 30px;
            border: 3px linear-gradient(135deg, #dddddd 0%, #767575 50%, #a59d9d 100%);
            padding: 40px 30px;
            background-clip: padding-box;
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
            color: #fff;
        }

        .container h2 {
            text-align: center;
            margin-bottom: 30px;
        } 
        .login-container h2 {
            text-align: center;
            margin-bottom: 30px;
        }

        input {
            width: 100%;
            padding: 12px;
            margin: 10px 0;
            background: rgba(255, 255, 255, 0.18);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
          
            border:2px solid #ffffff7d;
            border-radius: 10px;
            box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.15);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            color: #fff;
            transition: border 0.3s, box-shadow 0.3s;
        }

        input:focus {
            outline: none;
            border-bottom-color: #00c6ff;
        }

        /* Placeholder text color for cross-browser support */
        input::placeholder {
            color: #ffffff7d;
            opacity: 1;
        }
        input:-ms-input-placeholder {
            color: #ffffff7d;
        }
        input::-ms-input-placeholder {
            color: #ffffff7d;
        }
        input::-webkit-input-placeholder {
            color: #ffffff7d;
        }
        input::-moz-placeholder {
            color: #ffffff7d;
        }
        input:-moz-placeholder {
            color: #ffffff7d;
        }

        button {
            width: 100%;
            padding: 12px;
            margin-top: 20px;
            background: linear-gradient(90deg, #3c8aff 0%, #D0BBEB 50%, #EAB27A 100%);
            border: none;
            border-radius: 25px;
            color: white;
            font-weight: bold;
            cursor: pointer;
            box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.15);
            transition: background 1.5s ease, box-shadow 0.3s;
        }

        button:hover {
            background: linear-gradient(90deg, #3c8aff 0%, #D0BBEB 50%, #EAB27A 100%);
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25), 0 0 0 100px rgba(255,255,255,0.18) inset;
        }

        .link {
            margin-top: 15px;
            text-align: center;
        }

        .link a {
            color: #00c6ff;
            text-decoration: none;
        }

        @media (max-width: 400px) {
            .container {
                padding: 30px 20px;
            }
            .login-container {
                padding: 30px 20px;
            }
        }

        /* Autofill fix for dark theme */
        input:-webkit-autofill,
        input:-webkit-autofill:focus,
        input:-webkit-autofill:hover,
        input:-webkit-autofill:active {
            -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
            box-shadow: 0 0 0 1000px transparent inset !important;
            -webkit-text-fill-color: #fff !important;
            color: #fff !important;
            background: transparent !important;
            transition: background-color 5000s ease-in-out 0s;
        }

        /* Alert and error message styling */
        .alert {
            padding: 12px;
            margin: 10px 0;
            border-radius: 8px;
            text-align: center;
            font-weight: bold;
        }

        .alert-success {
            background: rgba(34, 197, 94, 0.2);
            border: 1px solid #22c55e;
            color: #22c55e;
        }

        .alert-danger {
            background: rgba(239, 68, 68, 0.2);
            border: 1px solid #ef4444;
            color: #ef4444;
        }

        .error-message {
            color: #ef4444;
            font-size: 0.875rem;
            margin-top: 5px;
            display: block;
        }

        /* Readonly input styling */
        input[readonly] {
            background: rgba(255, 255, 255, 0.25) !important;
            color: #ffffff !important;
            cursor: not-allowed !important;
            opacity: 0.8;
        }

        /* Password container (matching login form) */
        .password-container {
            position: relative;
            width: 100%;
        }

        .password-container input {
            width: 100%;
            padding-right: 50px; /* Make room for the eye icon */
        }

        /* Eye icon styling (matching login form) */
        .eye-icon {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #ffffff7d;
            transition: color 0.3s ease;
            z-index: 2;
        }

        .eye-icon:hover {
            color: #00c6ff;
        }

        .eye-icon svg {
            width: 24px;
            height: 24px;
        }

/* Auth Forms Styles (merged from auth-forms.css) */

/* Phone input styles for auth forms */
.auth-phone-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.auth-phone-input select {
    flex: none;
    height: 40px;
    min-width: auto;
    max-width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
    margin: 0;
}

.auth-phone-input input {
    flex: none;
    min-width: auto;
    height: 40px;
    box-sizing: border-box;
    margin: 0;
}

/* Password container for eye toggle */
.auth-password-container {
    position: relative;
}

.auth-password-container input[type="password"],
.auth-password-container input[type="text"] {
    width: 100%;
    padding-right: 50px; /* Space for the eye icon */
}

.auth-eye-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    user-select: none;
}

.auth-eye-icon:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Select dropdown styles for auth forms */
.auth-select {
    appearance: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 12px;
    border: 2px solid #ffffff7d;
    border-radius: 10px;
    cursor: pointer;
}

.auth-select:focus {
    outline: none;
    border-color: #00c6ff;
}

.auth-select option {
    color: #000;
    background: #fff;
}

/* Remember me checkbox styling */
.auth-remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
}

.auth-remember-me input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.auth-remember-me label {
    margin: 0;
    cursor: pointer;
    color: #fff;
}

/* Auth links styling */
.auth-link {
    text-align: center;
    margin-top: 20px;
}

.auth-link a {
    color: #00c6ff;
    text-decoration: none;
    margin: 0 10px;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for auth forms */
@media (max-width: 600px) {
    .auth-phone-input {
        flex-direction: column;
        gap: 8px;
    }

    .auth-phone-input select {
        width: 100%;
        max-width: none;
    }

    .auth-phone-input input {
        width: 100%;
    }

    .auth-password-container input[type="password"],
    .auth-password-container input[type="text"] {
        padding-right: 45px;
    }

    .auth-eye-icon {
        right: 12px;
        font-size: 16px;
    }
}

 .container {
  text-align: center;
}

h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.navigation {
  position: relative;
  width: 70px;
  height: 70px;
  background: #212532;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
  transition-delay: 0.8s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Depth for sleek look */
}

.navigation.active {
  width: 200px;
  height: 200px;
  transition-delay: 0s;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.navigation span {
  position: absolute;
  width: 7px;
  height: 7px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 50%;
  transform: translate(calc(12px * var(--x)), calc(12px * var(--y)));
  transition: transform 0.5s, width 0.5s, height 0.5s, background 0.5s;
  transition-delay: calc(0.1s * var(--i));
}

.navigation.active span {
  width: 45px;
  height: 45px;
  background: #333849;
  transform: translate(calc(60px * var(--x)), calc(60px * var(--y))); /* Adjusted for perfect 3x3 fit without overflow */
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
}

.navigation span ion-icon {
  transition: 0.5s;
  font-size: 0em;
  color: #b0b0b0; /* Grey for icons, sleek and modern */
}

.navigation.active span ion-icon {
  font-size: 1.75em; /* Reveals icons smoothly */
}

/* Hover effects for user-friendliness */
.navigation.active span:hover {
  background: #29fd53;
  transform: translate(calc(60px * var(--x)), calc(60px * var(--y))) scale(1.1); /* Slight scale on hover */
}

.navigation.active span:hover ion-icon {
  color: #fff;
}

/* Responsiveness for mobile/dashboard adaptability */
@media (max-width: 480px) {
  .navigation.active {
    width: 150px;
    height: 150px;
  }

  .navigation.active span {
    width: 35px;
    height: 35px;
    transform: translate(calc(45px * var(--x)), calc(45px * var(--y)));
  }

  .navigation.active span ion-icon {
    font-size: 1.25em;
  }
}
