/* auth-premium.css - Modern Glassmorphic UI for Auth Pages */

body.auth-theme {
    background-color: #0b1121;
    color: #f8fafc;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Dynamic Animated Background Elements */
.auth-bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.auth-shape {
    display: none;
}

.auth-shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245,117,57,0.4) 0%, rgba(245,117,57,0) 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.auth-shape-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, rgba(59,130,246,0) 70%);
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}

.auth-shape-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168,85,247,0.3) 0%, rgba(168,85,247,0) 70%);
    top: 40%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Glassmorphism Card */
.auth-page {
    padding-top: 8rem;
    padding-bottom: 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.auth-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), #fcd34d, var(--orange));
    background-size: 200% 100%;
    animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Text & Typography */
.auth-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    color: #94a3b8;
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

/* Input Fields */
.auth-card .input-icon-wrap {
    position: relative;
    margin-bottom: 1.25rem;
}

.auth-card label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-card .input-industrial {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border-radius: 30px;
    padding: 1rem 1rem 1rem 2.8rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-card .input-industrial:focus {
    outline: none;
    border-color: rgba(245, 117, 57, 0.5);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(245, 117, 57, 0.1);
}

.auth-card .input-icon-wrap svg:not(.eye-icon) {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #64748b;
    transition: color 0.3s ease;
    pointer-events: none;
}

.auth-card .input-industrial:focus + svg:not(.eye-icon),
.auth-card .input-industrial:focus ~ svg:not(.eye-icon) {
    color: var(--orange);
}

/* Primary Button */
.auth-card .btn-primary {
    background: linear-gradient(135deg, var(--orange) 0%, #e65c00 100%);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 1.1rem;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.auth-card .btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.auth-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(245, 117, 57, 0.6);
}

.auth-card .btn-primary:hover::after {
    left: 150%;
}

/* Divider */
.auth-card .divider {
    margin: 2rem 0;
    color: #64748b;
}

.auth-card .divider::before,
.auth-card .divider::after {
    background: rgba(255, 255, 255, 0.1);
}

/* Google Sign-in Button */
.auth-card .social-login-btn.google {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border-radius: 30px;
}

.auth-card .social-login-btn.google:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Bottom Links */
.auth-link-box {
    margin-top: 2rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.95rem;
}

.auth-link-box a {
    color: var(--orange);
    font-weight: 700;
    text-decoration: none;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.auth-link-box a:hover {
    color: #fcd34d;
    text-shadow: 0 0 10px rgba(245, 117, 57, 0.5);
}

.toggle-password {
    color: #64748b !important;
}

.toggle-password:hover {
    color: #f8fafc !important;
}

/* Quick fixes for register form layout */
.auth-card .grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .auth-card .md-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* 3D Button - from User snippet */
.btn-3d {
 position: relative;
 border: none;
 background: transparent;
 padding: 0;
 cursor: pointer;
 outline-offset: 4px;
 transition: filter 250ms;
 user-select: none;
 touch-action: manipulation;
 width: 100%;
}

.btn-3d .shadow {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 border-radius: 30px;
 background: hsl(0deg 0% 0% / 0.25);
 will-change: transform;
 transform: translateY(2px);
 transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
}

.btn-3d .edge {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 border-radius: 30px;
 background: linear-gradient(
    to left,
    hsl(339, 11%, 29%) 0%,
    hsl(340, 30%, 86%) 8%,
    hsl(0, 0%, 0%) 92%,
    hsl(0, 33%, 1%) 100%
  );
}

.btn-3d .front {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 0.5rem;
 position: relative;
 padding: 1.1rem;
 border-radius: 30px;
 font-size: 1.05rem;
 font-weight: 700;
 color: white;
 background: var(--orange); /* Adapted to use the brand orange */
 will-change: transform;
 transform: translateY(-4px);
 transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
}

.btn-3d:hover {
 filter: brightness(110%);
}

.btn-3d:hover .front {
 transform: translateY(-6px);
 transition: transform 250ms cubic-bezier(.3, .7, .4, 1.5);
}

.btn-3d:active .front {
 transform: translateY(-2px);
 transition: transform 34ms;
}

.btn-3d:hover .shadow {
 transform: translateY(4px);
 transition: transform 250ms cubic-bezier(.3, .7, .4, 1.5);
}

.btn-3d:active .shadow {
 transform: translateY(1px);
 transition: transform 34ms;
}

.btn-3d:focus:not(:focus-visible) {
 outline: none;
}


.otp-Form {
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
}

.otpSubheading {
  font-size: 0.9rem;
  color: var(--gray);
  text-align: center;
}

.inputContainer {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.otp-input {
  width: 45px;
  height: 50px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
}

.otp-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 117, 57, 0.1);
}
