/* ================================================
   SERENDIB AUTH PAGE - ENHANCED 3D STYLING
   ✅ FIXED: Elephants walk forward naturally
   ✅ FIXED: No tilt effect on auth card (user-friendly)
   ✅ ENHANCED: Realistic elephant animations
   ================================================ */

:root {
    --auth-gradient: linear-gradient(135deg, #0D9488 0%, #14B8A6 50%, #0D9488 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

/* ================================================
   BODY & BACKGROUND
   ================================================ */
body {
    min-height: 100vh;
    background: linear-gradient(135deg, #F5F7FA 0%, #E2E8F0 100%);
    position: relative;
    overflow-x: hidden;
}

/* 3D Background Effects */
.auth-bg-3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bg-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float-orb 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #0D9488 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #14B8A6 0%, transparent 70%);
    top: 50%;
    right: -5%;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #C77E28 0%, transparent 70%);
    bottom: -10%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float-orb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ================================================
   🐘 REALISTIC ELEPHANT ANIMATION - LEFT TO RIGHT
   ✅ FIXED: Now walking FORWARD naturally
   ================================================ */
.auth-elephants-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    perspective: 1200px;
}

.auth-elephants {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.elephant-walk-container {
    display: flex;
    align-items: flex-end;
    gap: 60px;
    position: absolute;
    left: -100%;
    animation: walk-left-to-right 16s linear infinite;
    transform-style: preserve-3d;
}

/* Walk from LEFT to RIGHT */
@keyframes walk-left-to-right {
    0% {
        left: -100%;
    }

    100% {
        left: 120%;
    }
}

/* ================================================
   🔧 FIX: FLIP ELEPHANTS TO FACE RIGHT
   ================================================ */
.elephant svg {
    transform: scaleX(-1);
    /* Mirror horizontally so they face right */
}

/* ================================================
   ENHANCED 3D ELEPHANT STYLING - MORE REALISTIC
   ================================================ */
.elephant {
    flex-shrink: 0;
    position: relative;
    transform-style: preserve-3d;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

/* Dynamic shadow that changes with walking */
.elephant::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    filter: blur(8px);
    animation: shadow-realistic 1.2s ease-in-out infinite;
    z-index: -1;
}

@keyframes shadow-realistic {

    0%,
    100% {
        transform: scale(1, 1);
        opacity: 0.3;
    }

    25% {
        transform: scale(1.1, 0.8);
        opacity: 0.4;
    }

    50% {
        transform: scale(1, 1);
        opacity: 0.3;
    }

    75% {
        transform: scale(0.9, 1.1);
        opacity: 0.35;
    }
}

/* ================================================
   REALISTIC BODY MOVEMENT - Weight Shift
   ================================================ */
.elephant-mother {
    width: 140px;
    height: 120px;
    animation: realistic-walk-mother 1.4s ease-in-out infinite;
}

.elephant-baby {
    width: 100px;
    height: 92px;
    margin-bottom: 15px;
    animation: realistic-walk-baby 1s ease-in-out infinite;
}

.elephant-father {
    width: 150px;
    height: 128px;
    animation: realistic-walk-father 1.6s ease-in-out infinite;
}

/* Mother - Steady, mature walk with weight shift */
@keyframes realistic-walk-mother {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    25% {
        transform: translateY(-5px) translateX(-2px) rotate(-0.8deg);
    }

    50% {
        transform: translateY(-8px) translateX(0) rotate(0deg);
    }

    75% {
        transform: translateY(-5px) translateX(2px) rotate(0.8deg);
    }
}

/* Baby - Playful, energetic with little jumps */
@keyframes realistic-walk-baby {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    20% {
        transform: translateY(-3px) translateX(-1px) rotate(-0.5deg);
    }

    45% {
        transform: translateY(-12px) translateX(0) rotate(0deg);
        /* Little hop! */
    }

    70% {
        transform: translateY(-3px) translateX(1px) rotate(0.5deg);
    }
}

/* Father - Powerful, slow walk with more weight */
@keyframes realistic-walk-father {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    25% {
        transform: translateY(-4px) translateX(-3px) rotate(-1deg);
    }

    50% {
        transform: translateY(-7px) translateX(0) rotate(0deg);
    }

    75% {
        transform: translateY(-4px) translateX(3px) rotate(1deg);
    }
}

/* ================================================
   REALISTIC LEG MOVEMENT - Diagonal Pairs
   Real elephants move front-left + back-right together
   ================================================ */
.leg-front-left,
.leg-back-right {
    animation: leg-diagonal-pair-1 1.2s ease-in-out infinite;
    transform-origin: center top;
}

.leg-front-right,
.leg-back-left {
    animation: leg-diagonal-pair-2 1.2s ease-in-out infinite;
    transform-origin: center top;
}

@keyframes leg-diagonal-pair-1 {

    0%,
    100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    25% {
        transform: translateX(5px) translateY(-4px) rotate(8deg);
    }

    50% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    75% {
        transform: translateX(-3px) translateY(-2px) rotate(-5deg);
    }
}

@keyframes leg-diagonal-pair-2 {

    0%,
    100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    25% {
        transform: translateX(-3px) translateY(-2px) rotate(-5deg);
    }

    50% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    75% {
        transform: translateX(5px) translateY(-4px) rotate(8deg);
    }
}

/* ================================================
   REALISTIC HEAD BOBBING
   ================================================ */
.elephant-body .head {
    animation: head-bob-realistic 1.3s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes head-bob-realistic {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    30% {
        transform: translateY(-2px) rotate(1deg);
    }

    70% {
        transform: translateY(-3px) rotate(-0.5deg);
    }
}

/* ================================================
   REALISTIC EAR FLAPPING
   ================================================ */
.elephant-body .ear {
    animation: ear-flap-realistic 2.2s ease-in-out infinite;
    transform-origin: 80% 50%;
}

@keyframes ear-flap-realistic {

    0%,
    100% {
        transform: rotateY(0deg) translateX(0);
    }

    25% {
        transform: rotateY(-12deg) translateX(-2px);
    }

    50% {
        transform: rotateY(0deg) translateX(0);
    }

    75% {
        transform: rotateY(8deg) translateX(1px);
    }
}

/* ================================================
   REALISTIC TRUNK SWING - Natural, Organic
   ================================================ */
.trunk {
    animation: trunk-natural-swing 2.6s ease-in-out infinite;
    transform-origin: 50% 10%;
}

@keyframes trunk-natural-swing {

    0%,
    100% {
        transform: rotate(-3deg) translateX(0) translateY(0);
    }

    20% {
        transform: rotate(2deg) translateX(2px) translateY(-1px);
    }

    45% {
        transform: rotate(6deg) translateX(3px) translateY(1px);
    }

    70% {
        transform: rotate(-5deg) translateX(-2px) translateY(-1px);
    }
}

/* ================================================
   REALISTIC TAIL SWISH - More Natural
   ================================================ */
.tail {
    animation: tail-swish-realistic 2s ease-in-out infinite;
    transform-origin: 0% 50%;
}

@keyframes tail-swish-realistic {

    0%,
    100% {
        transform: rotate(0deg) translateY(0);
    }

    15% {
        transform: rotate(10deg) translateY(-2px);
    }

    40% {
        transform: rotate(5deg) translateY(1px);
    }

    65% {
        transform: rotate(-12deg) translateY(-1px);
    }

    85% {
        transform: rotate(-5deg) translateY(0);
    }
}

/* Add subtle shimmer to bodies */
.elephant-body ellipse,
.elephant-body path,
.elephant-body rect {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: filter 0.3s ease;
}

/* ✅ FIX: Ensure elephants don't block clicks */
.elephant,
.elephant-walk-container,
.elephant svg,
.elephant-body,
.elephant-body * {
    pointer-events: none !important;
}

/* ================================================
   AUTH CONTAINER
   ================================================ */
.auth-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 200px 24px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-home-3d {
    position: fixed;
    top: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--jungle-green);
    font-weight: var(--font-weight-medium);
    transition: var(--transition-base);
    z-index: 100;
}

.back-home-3d:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.9);
}

/* ================================================
   MAIN AUTH LAYOUT
   ================================================ */
.auth-main-3d {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    align-items: start;
}

/* ================================================
   AUTH CARD 3D - PACKAGE CARD STYLE (NO TILT)
   ✅ FIXED: Removed mouse-follow effect for better UX
   ================================================ */
.auth-card-3d {
    position: relative;
    padding: 50px;
    border-radius: var(--radius-xxl);
    animation: slide-in-up 0.6s var(--ease-bounce);
    z-index: 10;
    /* ✅ Ensure card is above elephants */

    /* Premium styling */
    background: var(--white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

/* 3D Wrapper Effect - NO MOUSE TRACKING */
.auth-card-3d::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xxl);
    opacity: 0;
    filter: blur(30px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.auth-card-3d:hover::before {
    opacity: 0.4;
}

/* Glow Effect on Hover - SIMPLE LIFT, NO TILT */
.auth-card-3d::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--ocean-teal) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    filter: blur(50px);
    transition: all 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

.auth-card-3d:hover::after {
    opacity: 0.2;
    width: 400px;
    height: 400px;
}

/* Simple hover lift - NO ROTATION/TILT */
.auth-card-3d:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(13, 148, 136, 0.25),
        0 12px 30px rgba(0, 0, 0, 0.15);
}

@keyframes slide-in-up {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Logo */
.auth-logo-3d {
    text-align: center;
    margin-bottom: 40px;
}

.logo-text-3d {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-main {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: var(--font-weight-black);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--slate-medium);
    margin-top: -5px;
}

/* ================================================
   TABS 3D
   ================================================ */
.auth-tabs-3d {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.4);
    padding: 6px;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tab-3d {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--slate-medium);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition-base);
    overflow: hidden;
}

.tab-icon {
    font-size: 20px;
    transition: var(--transition-base);
}

.tab-text {
    font-size: 15px;
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: var(--transition-base);
}

.tab-3d.active {
    background: var(--white);
    color: var(--jungle-green);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.tab-3d.active .tab-icon {
    transform: scale(1.1);
}

.tab-3d.active .tab-indicator {
    transform: scaleX(1);
}

.tab-3d:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

/* ================================================
   TAB CONTENT
   ================================================ */
.tab-content-3d {
    display: none;
    animation: fade-in-content 0.4s ease;
}

.tab-content-3d.active {
    display: block;
}

@keyframes fade-in-content {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-title-3d {
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    color: var(--slate-dark);
    margin-bottom: 8px;
    text-align: center;
}

.panel-subtitle-3d {
    text-align: center;
    color: var(--slate-medium);
    margin-bottom: 30px;
}

/* ================================================
   FORMS 3D
   ================================================ */
.auth-form-3d {
    margin-bottom: 30px;
}

.form-group-3d {
    margin-bottom: 24px;
}

.form-label-3d {
    display: block;
    margin-bottom: 10px;
    font-weight: var(--font-weight-medium);
    color: var(--slate-dark);
    font-size: 15px;
}

.input-wrapper-3d {
    position: relative;
}

.form-input-3d {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: inherit;
    color: var(--slate-dark);
    transition: var(--transition-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-input-3d:focus {
    outline: none;
    border-color: var(--ocean-teal);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.1);
    background: var(--white);
}

.input-glow-3d {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: var(--transition-base);
    box-shadow: 0 0 10px rgba(13, 148, 136, 0.5);
}

.form-input-3d:focus+.input-glow-3d {
    transform: scaleX(1);
}

.error-message-3d {
    color: #EF4444;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.form-input-3d.error {
    border-color: #EF4444;
    animation: shake 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.form-input-3d.error+.input-glow-3d {
    background: #EF4444;
    transform: scaleX(1);
}

.form-input-3d.error~.error-message-3d {
    display: block;
}

/* ================================================
   BUTTONS 3D - ENHANCED
   ================================================ */
.btn-3d-primary {
    position: relative;
    width: 100%;
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3),
        0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-3d-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-3d-primary:hover::before {
    left: 100%;
}

.btn-3d-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-3d-primary:active {
    transform: translateY(-1px);
}

.btn-3d-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-loader-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.btn-3d-primary.loading .btn-text {
    opacity: 0;
}

.btn-3d-primary.loading .btn-loader-3d {
    display: block;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-3d-outline {
    width: 100%;
    padding: 16px 32px;
    background: transparent;
    color: var(--jungle-green);
    border: 2px solid var(--jungle-green);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-3d-outline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--jungle-green);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-3d-outline:hover::before {
    width: 300%;
    height: 300%;
}

.btn-3d-outline:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.2);
}

.btn-3d-outline span {
    position: relative;
    z-index: 2;
}

.full-width {
    width: 100%;
}

/* ================================================
   OTP SECTION
   ================================================ */
.otp-section-3d {
    display: none;
    animation: slide-in-down 0.4s ease;
}

.otp-section-3d.active {
    display: block;
}

@keyframes slide-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.otp-input-3d {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    text-align: center;
    letter-spacing: 12px;
    color: var(--jungle-green);
    transition: var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.otp-input-3d:focus {
    outline: none;
    border-color: var(--ocean-teal);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1),
        0 8px 20px rgba(13, 148, 136, 0.15);
    background: var(--white);
}

.otp-actions-3d {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.otp-timer-3d {
    text-align: center;
    margin-top: 16px;
    color: var(--slate-medium);
    font-size: 14px;
}

/* ================================================
   DIVIDER
   ================================================ */
.divider-3d {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.divider-3d::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.divider-3d span {
    position: relative;
    display: inline-block;
    padding: 0 20px;
    background: var(--white);
    color: var(--slate-medium);
    font-size: 14px;
}

/* ================================================
   SOCIAL BUTTONS
   ================================================ */
.social-buttons-3d {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-social-3d {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-social-3d::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--sand);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-social-3d:hover::before {
    width: 300%;
    height: 300%;
}

.btn-social-3d span,
.btn-social-3d svg {
    position: relative;
    z-index: 2;
}

.btn-social-3d:hover {
    border-color: var(--ocean-teal);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-social-3d.google:hover {
    background: #F8F9FA;
}

.btn-social-3d.apple:hover {
    background: #000000;
    color: var(--white);
    border-color: #000000;
}

/* ================================================
   PARTNER GRID & FORMS
   ================================================ */
.partner-grid-3d {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.partner-card-3d {
    position: relative;
    padding: 30px 20px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-base);
    overflow: hidden;
    cursor: pointer;
}

.partner-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-base);
}

.partner-card-3d:hover {
    border-color: var(--ocean-teal);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(13, 148, 136, 0.2);
}

.partner-card-3d:hover::before {
    opacity: 0.05;
}

.partner-icon-3d {
    font-size: 48px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.partner-name-3d {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--slate-dark);
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.partner-desc-3d {
    font-size: 14px;
    color: var(--slate-medium);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.partner-arrow-3d {
    font-size: 24px;
    color: var(--ocean-teal);
    transition: var(--transition-base);
    position: relative;
    z-index: 2;
}

.partner-card-3d:hover .partner-arrow-3d {
    transform: translateX(5px);
}

.partner-info-3d {
    text-align: center;
    padding: 20px;
    background: rgba(13, 148, 136, 0.05);
    border-radius: var(--radius-md);
    color: var(--slate-medium);
}

.link-3d {
    color: var(--jungle-green);
    font-weight: var(--font-weight-medium);
    text-decoration: underline;
    transition: var(--transition-base);
}

.link-3d:hover {
    color: var(--ocean-teal);
}

/* ================================================
   TRUST PANEL
   ================================================ */
.trust-panel-3d {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slide-in-right 0.6s var(--ease-bounce) 0.2s backwards;
}

@keyframes slide-in-right {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.trust-card-3d {
    padding: 30px;
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.trust-card-3d:hover {
    transform: translateY(-5px) translateX(-3px);
    box-shadow: 0 16px 40px rgba(13, 148, 136, 0.15);
}

.trust-icon-3d {
    font-size: 40px;
    margin-bottom: 16px;
}

.trust-card-3d h3 {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--slate-dark);
    margin-bottom: 12px;
}

.trust-card-3d p {
    color: var(--slate-medium);
    line-height: 1.6;
    font-size: 14px;
}

/* ================================================
   LEGAL TEXT
   ================================================ */
.legal-text-3d {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 13px;
    color: var(--slate-medium);
}

.legal-text-3d a {
    color: var(--jungle-green);
    text-decoration: underline;
    transition: var(--transition-base);
}

.legal-text-3d a:hover {
    color: var(--ocean-teal);
}

/* ================================================
   SUCCESS TOAST
   ================================================ */
.toast-3d {
    position: fixed;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    transition: var(--transition-base);
    z-index: 1000;
}

.toast-3d.show {
    transform: translateX(0);
    animation: toast-bounce 0.5s var(--ease-bounce);
}

@keyframes toast-bounce {
    0% {
        transform: translateX(400px);
    }

    60% {
        transform: translateX(-10px);
    }

    80% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

.toast-icon-3d {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 20px;
    font-weight: var(--font-weight-bold);
}

.toast-title-3d {
    display: block;
    color: var(--slate-dark);
    margin-bottom: 4px;
    font-weight: var(--font-weight-bold);
}

.toast-message-3d {
    color: var(--slate-medium);
    font-size: 14px;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1024px) {
    .auth-main-3d {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .trust-panel-3d {
        flex-direction: row;
        overflow-x: auto;
    }

    .trust-card-3d {
        min-width: 280px;
    }

    .elephant-mother {
        width: 110px;
        height: 95px;
    }

    .elephant-baby {
        width: 80px;
        height: 75px;
    }

    .elephant-father {
        width: 120px;
        height: 100px;
    }

    .elephant-walk-container {
        gap: 30px;
        animation-duration: 14s;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 180px 20px 40px;
    }

    .auth-card-3d {
        padding: 30px 24px;
    }

    .back-home-3d {
        top: 20px;
        left: 20px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .auth-tabs-3d {
        flex-direction: column;
        gap: 4px;
    }

    .panel-title-3d {
        font-size: 28px;
    }

    .social-buttons-3d {
        grid-template-columns: 1fr;
    }

    .partner-grid-3d {
        grid-template-columns: 1fr;
    }

    .trust-panel-3d {
        display: none;
    }

    .toast-3d {
        top: 20px;
        right: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .auth-elephants-container {
        height: 140px;
    }

    .elephant-mother {
        width: 90px;
        height: 78px;
    }

    .elephant-baby {
        width: 65px;
        height: 60px;
    }

    .elephant-father {
        width: 95px;
        height: 82px;
    }

    .elephant-walk-container {
        gap: 20px;
        animation-duration: 18s;
    }

    .auth-card-3d {
        padding: 24px 20px;
    }

    .logo-main {
        font-size: 36px;
    }

    .otp-actions-3d {
        grid-template-columns: 1fr;
    }
}

/* ================================================
   ACCESSIBILITY - MOTION PREFERENCES
   ================================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .elephant-walk-container {
        animation: none !important;
        left: 20% !important;
        /* Static position */
    }
}