.hidden {
    display: none !important;
}

.input-status-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  pointer-events: none;
}

.input-status-icon.error {
  color: #ef4444;
}

.input-status-icon.success {
  color: #22c55e;
}

.input-status-icon.neutral {
  color: #9ca3af;
}

@keyframes spinCentered {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }
  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}

.animate-spin-centered {
  animation: spinCentered 1s linear infinite;
}

.auth-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 64px);
    background-color: #0b0924;
}

.auth-card {
    flex: 1;
    padding: 2rem 1.5rem;
    max-width: 100%;
    animation: fadeIn 0.8s ease-out;
}

.auth-background {
    display: none;
    background: linear-gradient(135deg, #0b0924, #060513, #120f3b);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    padding: 2rem;
    position: relative;
}

.auth-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/hero-background.png');
    opacity: 0.05;
    z-index: 0;
}

.auth-background-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
}

.auth-background-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: slideInRight 1s ease-out;
}

.auth-background-text {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    max-width: 30rem;
    animation: fadeIn 1.2s ease-out;
}

.auth-background-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeIn 1.5s ease-out;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.5s ease-out;
    animation-fill-mode: both;
}

.auth-background-features .feature:nth-child(1) {
    animation-delay: 0.2s;
}

.auth-background-features .feature:nth-child(2) {
    animation-delay: 0.4s;
}

.auth-background-features .feature:nth-child(3) {
    animation-delay: 0.6s;
}

.feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #ef4444;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: fadeIn 0.8s ease-out;
}

.auth-subtitle {
    color: #9ca3af;
    animation: fadeIn 1s ease-out;
}

.auth-form {
    max-width: 28rem;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

.auth-form .form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.auth-form .form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.auth-form .form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.auth-form .form-group:nth-child(4) {
    animation-delay: 0.4s;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    width: 1.25rem;
    height: 1.25rem;
    transition: color 0.3s;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 3rem;
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}


input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

input[type="text"]:focus+.input-icon,
input[type="email"]:focus+.input-icon,
input[type="password"]:focus+.input-icon {
    color: #ef4444;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #ef4444;
}

.strength-meter {
  margin-top: 0.5rem;
}

.strength-bar {
  height: 6px;
  border-radius: 4px;
  margin-bottom: 0.25rem;
  background-color: #374151;
  position: relative;
  overflow: hidden;
}

.strength-bar.weak::after {
  content: '';
  display: block;
  height: 100%;
  width: 33%;
  background-color: #ef4444;
}

.strength-bar.medium::after {
  content: '';
  display: block;
  height: 100%;
  width: 66%;
  background-color: #f59e0b;
}

.strength-bar.strong::after {
  content: '';
  display: block;
  height: 100%;
  width: 100%;
  background-color: #22c55e;
}

.strength-label {
  font-size: 0.75rem;
  color: #9ca3af;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.5s ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: both;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #ef4444;
    cursor: pointer;
}

.forgot-password {
    color: #ef4444;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #f87171;
    text-decoration: underline;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.5s ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: both;
}

.form-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-top: 0.25rem;
    accent-color: #ef4444;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.875rem;
    margin-bottom: 0;
    color: #9ca3af;
}

.auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #ef4444;
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.auth-button:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

.auth-button:hover::before {
    width: 300%;
    height: 300%;
}

.auth-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.button-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #6b7280;
    animation: fadeIn 0.5s ease-out;
    animation-delay: 0.7s;
    animation-fill-mode: both;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #374151;
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeIn 0.5s ease-out;
    animation-delay: 0.8s;
    animation-fill-mode: both;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #1f2937;
    border: 1px solid #374151;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.7s;
}

.social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-button:hover::before {
    left: 100%;
}

.social-button:active {
    transform: translateY(0);
}

.social-button.discord:hover {
    border-color: #5865F2;
    background-color: rgba(88, 101, 242, 0.1);
}

.social-button.google:hover {
    border-color: #EA4335;
    background-color: rgba(234, 67, 53, 0.1);
}

.social-button .icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: #9ca3af;
    font-size: 0.875rem;
    animation: fadeIn 0.5s ease-out;
    animation-delay: 0.9s;
    animation-fill-mode: both;
}

.auth-link {
    color: #ef4444;
    text-decoration: none;
    transition: color 0.3s;
}

.auth-link:hover {
    color: #f87171;
    text-decoration: underline;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .auth-container {
        flex-direction: row;
    }

    .auth-card {
        flex: 1;
        padding: 3rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .auth-background {
        display: block;
        flex: 1;
    }
}

/* Additional animations */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.input-error {
    border-color: #ef4444 !important;
    animation: shake 0.5s ease-in-out;
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    animation: fadeIn 0.3s ease-out;
}

/* Success animation */
@keyframes success-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.input-success {
    border-color: #22c55e !important;
    animation: success-pulse 1.5s infinite;
}

/* Button loading animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.button-loading {
    position: relative;
    color: transparent !important;
}

.button-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: -0.75rem;
    margin-left: -0.75rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

.avatar-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.avatar-modal {
    background-color: #0b0924;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    max-width: 480px;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

.avatar-modal h2 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.avatar-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    margin-bottom: 2rem;
}

.avatar-carousel::-webkit-scrollbar {
    display: none;
}

.avatar-preview, .arrow-icon {
    scroll-snap-align: center;
}

.avatar-preview {
    width: 160px;
    height: 160px;
    border-radius: 20%;
    background-color: #1f1b35;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.upload-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.plus-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: #fff;
}


.arrow-icon {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s;
}

.arrow-icon:hover {
    color: white;
}

.avatar-preview.ghost {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(2px);
    overflow: hidden;
}

.avatar-preview.main-avatar {
    width: 90px;
    height: 90px;
    flex: 0 0 90px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background-color: #1f1b35;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.avatar-image.faded {
    filter: blur(1px);
    opacity: 0.7;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: all;
}

.modal-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1002;
  background-color: #0b0924;
  padding: 1.5rem 1.75rem;
  border-radius: 1rem;
  width: 100%;
  max-width: 380px;
  height: 300px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.modal-title {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.modal-subtext {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.otp-input {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  background-color: #1f2937;
  border: 1px solid #374151;
  color: #fff;
  text-align: center;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.otp-input:focus {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skip-button {
  background-color: #f97316;
}

.skip-button:hover {
  background-color: #ea580c;
}

.close-button {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
}

.close-button:hover {
  color: #ef4444;
}


@media (max-width: 768px) {
    .avatar-preview.main-avatar {
      width: 72px;
      height: 72px;
      flex: 0 0 72px;
    }
  
    .avatar-preview.ghost {
      width: 48px;
      height: 48px;
      flex: 0 0 48px;
    }
  
    .arrow-icon {
      width: 1.5rem;
      height: 1.5rem;
    }
  
    .avatar-carousel {
      gap: 1rem;
    }
}