/* Background with animated gradient */
.auth-bg {
    position: relative;
    background: linear-gradient(135deg, #e0f2fe 0%, #ede9fe 25%, #e0f2fe 50%, #c7d2fe 75%, #bae6fd 100%);
    min-height: 100vh;
    overflow: hidden;
}

/* Animated gradient overlay */
.auth-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Geometric elements */
.floral-element {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

/* Circles */
.circle {
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(99, 102, 241, 0.15));
    filter: blur(2px);
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.circle-1 {
    width: 150px;
    height: 150px;
    top: 8%;
    left: 10%;
    animation: 28s ease-in-out infinite float-lg;
    opacity: 0.35;
}

.circle-2 {
    width: 100px;
    height: 100px;
    bottom: 12%;
    right: 8%;
    animation: 32s ease-in-out infinite float-lg reverse;
    opacity: 0.3;
}

/* Auth page logo dark/light switching */
.auth-brand .auth-logo-dark { display: block; margin: 0 auto; }
.auth-brand .auth-logo-light { display: none; margin: 0 auto; }
html[data-bs-theme="dark"] .auth-brand .auth-logo-dark { display: none; }
html[data-bs-theme="dark"] .auth-brand .auth-logo-light { display: block; }

.circle-3 {
    width: 80px;
    height: 80px;
    top: 55%;
    right: 6%;
    animation: 26s ease-in-out infinite float-lg;
    opacity: 0.25;
}

/* Squares */
.square {
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.2), rgba(14, 165, 233, 0.1));
    filter: blur(1px);
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.square-1 {
    width: 110px;
    height: 110px;
    top: 18%;
    right: 10%;
    animation: 30s linear infinite rotate-continuous;
    opacity: 0.25;
    transform: rotate(15deg);
}

.square-2 {
    width: 90px;
    height: 90px;
    bottom: 20%;
    left: 7%;
    animation: 28s linear infinite rotate-continuous-reverse;
    opacity: 0.2;
    transform: rotate(-25deg);
}

/* Diamonds */
.diamond {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(165, 180, 252, 0.15));
    transform: rotate(45deg);
    filter: blur(1px);
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.diamond-1 {
    top: 38%;
    left: 15%;
    animation: 24s ease-in-out infinite float-lg;
    opacity: 0.3;
}

.diamond-2 {
    bottom: 28%;
    right: 12%;
    animation: 26s ease-in-out infinite float-lg reverse;
    opacity: 0.25;
}

/* Pulsing dots */
.dot-pattern {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.6), rgba(14, 165, 233, 0.2));
    border-radius: 50%;
    animation: 6s ease-in-out infinite pulse-glow;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

.dot-1 {
    top: 22%;
    left: 22%;
    animation-delay: 0s;
}

.dot-2 {
    top: 68%;
    left: 20%;
    animation-delay: 2s;
}

.dot-3 {
    top: 42%;
    right: 18%;
    animation-delay: 4s;
}

.dot-4 {
    bottom: 32%;
    right: 10%;
    animation-delay: 1s;
}

/* Animated lines */
.line {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.4), rgba(99, 102, 241, 0.2), transparent);
    filter: blur(1px);
    border-radius: 50%;
}

.line-1 {
    width: 120px;
    height: 5px;
    top: 48%;
    left: 12%;
    animation: 20s ease-in-out infinite wave-line;
    opacity: 0.35;
}

.line-2 {
    width: 140px;
    height: 4px;
    bottom: 38%;
    right: 10%;
    animation: 22s ease-in-out infinite wave-line reverse;
    opacity: 0.3;
}

/* Animations */
@keyframes float-lg {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(15px, -15px) scale(1.05);
    }

    50% {
        transform: translate(20px, 10px) scale(1);
    }

    75% {
        transform: translate(-10px, 15px) scale(1.05);
    }
}

@keyframes rotate-continuous {
    0% {
        transform: rotate(15deg);
    }

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

@keyframes rotate-continuous-reverse {
    0% {
        transform: rotate(-25deg);
    }

    100% {
        transform: rotate(-385deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
        box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
    }

    50% {
        transform: scale(1.8);
        opacity: 0.1;
        box-shadow: 0 0 40px rgba(14, 165, 233, 0.2);
    }
}

@keyframes wave-line {

    0%,
    100% {
        transform: translateY(0) scaleX(1);
        opacity: 0.35;
    }

    50% {
        transform: translateY(-12px) scaleX(1.2);
        opacity: 0.55;
    }
}

/* Card styling — scoped to auth pages */
.auth-bg .card {
    backdrop-filter: blur(20px);
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.12), 0 10px 30px rgba(99, 102, 241, 0.08), 0 0 1px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(14, 165, 233, 0.15) !important;
    position: relative;
    z-index: 10;
}

/* Form elements */
.auth-bg .form-control {
    border: 1.5px solid rgba(14, 165, 233, 0.2) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    background-color: rgba(240, 249, 255, 0.5) !important;
}

.auth-bg .form-control:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.15) !important;
    background-color: #fff !important;
}

.auth-bg .form-label {
    color: #0ea5e9;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    color: white !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%) !important;
}

/* Links and text */
h4.fw-semibold {
    letter-spacing: -0.5px;
    font-weight: 700;
}

.text-muted {
    font-size: 14px;
}

a.border-bottom {
    text-decoration: none;
    border-bottom: 2px solid #0ea5e9;
    transition: all 0.3s ease;
}

a.border-bottom:hover {
    border-bottom-color: #6366f1;
}

.form-check-input:checked {
    background-color: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
}

.auth-brand {
    filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 0.1));
}

/* Access/Security themed icons */
.lock,
.key,
.user,
.shield {
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.3));
}

/* Locks */
.lock-1 {
    top: 12%;
    left: 8%;
    animation: 24s ease-in-out infinite bounce-icon;
    opacity: 0.6;
}

.lock-2 {
    bottom: 18%;
    right: 10%;
    animation: 26s ease-in-out infinite bounce-icon reverse;
    opacity: 0.5;
}

/* Keys */
.key-1 {
    top: 40%;
    right: 12%;
    animation: 20s ease-in-out infinite rotate-icon;
    opacity: 0.55;
}

.key-2 {
    bottom: 35%;
    left: 6%;
    animation: 22s ease-in-out infinite rotate-icon reverse;
    opacity: 0.5;
}

/* Users */
.user-1 {
    top: 25%;
    left: 18%;
    animation: 18s ease-in-out infinite float-icon;
    opacity: 0.5;
}

.user-2 {
    top: 60%;
    right: 8%;
    animation: 21s ease-in-out infinite float-icon reverse;
    opacity: 0.45;
}

.user-3 {
    bottom: 28%;
    left: 25%;
    animation: 19s ease-in-out infinite float-icon;
    opacity: 0.4;
    animation-delay: 1s;
}

/* Shield */
.shield-1 {
    top: 35%;
    left: 35%;
    animation: 25s ease-in-out infinite pulse-icon;
    opacity: 0.55;
}

/* Settings/Admin */
.settings-1 {
    top: 48%;
    right: 14%;
    animation: 22s linear infinite spin-continuous;
    opacity: 0.6;
}

.settings-2 {
    bottom: 22%;
    right: 6%;
    animation: 24s linear infinite spin-continuous reverse;
    opacity: 0.5;
}

/* Chart/Dashboard */
.chart-1 {
    top: 20%;
    right: 20%;
    animation: 20s ease-in-out infinite scale-bounce;
    opacity: 0.55;
}

/* Documents/Lists */
.docs-1 {
    bottom: 45%;
    left: 12%;
    animation: 18s ease-in-out infinite slide-flip;
    opacity: 0.5;
}

.docs-2 {
    top: 58%;
    left: 28%;
    animation: 20s ease-in-out infinite slide-flip reverse;
    opacity: 0.45;
}

/* Icon animations */
@keyframes bounce-icon {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    25% {
        transform: translateY(-15px) scale(1.1);
    }

    50% {
        transform: translateY(0) scale(1);
    }

    75% {
        transform: translateY(-8px) scale(1.05);
    }
}

@keyframes rotate-icon {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.15);
    }

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

@keyframes float-icon {

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

    33% {
        transform: translateY(-20px) translateX(10px) rotate(15deg);
    }

    66% {
        transform: translateY(10px) translateX(-8px) rotate(-10deg);
    }
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.55;
    }

    50% {
        transform: scale(1.25);
        opacity: 0.8;
    }
}

@keyframes spin-continuous {
    0% {
        transform: rotate(0deg);
    }

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

@keyframes scale-bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

@keyframes slide-flip {

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

    50% {
        transform: translateX(15px) rotateY(180deg);
    }
}

.member-type-btn {
    padding: 12px 8px;
    border: 2px solid rgba(14, 165, 233, 0.2);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.member-type-btn:hover {
    border-color: #0ea5e9;
    background: rgba(14, 165, 233, 0.05);
    color: #0ea5e9;
    transform: translateY(-2px);
}

.member-type-btn.active {
    border-color: #0ea5e9;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(99, 102, 241, 0.05));
    color: #6366f1;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.member-type-icon {
    font-size: 24px;
}

.divider-text {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.footer-text {
    font-size: 11px;
    color: #94a3b8;
}


.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0 18px;
    color: #9ca3af;
    font-size: 13px
}

.social-divider::after,
.social-divider::before {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(236, 72, 153, .15)
}

.social-divider span {
    padding: 0 12px
}

.social-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 18px
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid rgba(236, 72, 153, .2);
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
    text-decoration: none
}

.social-btn:hover {
    transform: translateY(-2px);
    text-decoration: none
}

.social-btn.facebook {
    border-color: #1877f2;
    color: #1877f2
}

.social-btn.facebook:hover {
    background: #1877f2;
    color: #fff;
    box-shadow: 0 4px 15px rgba(24, 119, 242, .3)
}

.social-btn.facebook:hover .social-icon svg {
    fill: white
}

.social-btn.google {
    border-color: #ea4335;
    color: #ea4335
}

.social-btn.google:hover {
    background: #ea4335;
    color: #fff;
    border-color: #ea4335;
    box-shadow: 0 4px 15px rgba(234, 67, 53, .3);
    transform: translateY(-2px)
}

.social-btn.google:hover .social-icon svg path {
    fill: white !important
}

.social-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center
}

.mb-3 {
    margin-bottom: 1rem !important
}

