/* Login 7 — Blue Aurora (animated gradient + glass form) */

.login7-page {
    --login7-blue-deep: #0a1628;
    --login7-blue-mid: #0d47a1;
    --login7-blue-bright: #1e88e5;
    --login7-cyan: #00bcd4;
    --login7-sky: #64b5f6;
    --login7-glass: rgba(255, 255, 255, 0.12);
    --login7-glass-border: rgba(255, 255, 255, 0.28);
    min-height: 100vh;
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

.login7-page *,
.login7-page *::before,
.login7-page *::after {
    box-sizing: border-box;
}

/* ——— Animated background ——— */
.login7-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--login7-blue-deep);
    overflow: hidden;
}

.login7-bg-gradient {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse 55% 45% at 15% 20%, rgba(30, 136, 229, 0.55) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 85% 75%, rgba(0, 188, 212, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 40% 35% at 50% 50%, rgba(21, 101, 192, 0.35) 0%, transparent 55%),
        linear-gradient(145deg, #051525 0%, #0d47a1 42%, #1565c0 68%, #0277bd 100%);
    background-size: 200% 200%;
    animation: login7BgShift 16s ease-in-out infinite;
}

@keyframes login7BgShift {
    0%, 100% { background-position: 0% 40%; transform: scale(1); }
    50% { background-position: 100% 60%; transform: scale(1.03); }
}

.login7-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 75%);
    animation: login7GridDrift 24s linear infinite;
}

@keyframes login7GridDrift {
    0% { transform: translateY(0); }
    100% { transform: translateY(48px); }
}

.login7-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.55;
    animation: login7OrbFloat 12s ease-in-out infinite;
}

.login7-orb-1 {
    width: 320px;
    height: 320px;
    top: -8%;
    left: -5%;
    background: radial-gradient(circle, rgba(100, 181, 246, 0.45) 0%, transparent 68%);
    animation-duration: 14s;
}

.login7-orb-2 {
    width: 240px;
    height: 240px;
    bottom: 10%;
    right: 8%;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.4) 0%, transparent 70%);
    animation-duration: 11s;
    animation-delay: -3s;
}

.login7-orb-3 {
    width: 180px;
    height: 180px;
    top: 35%;
    right: -4%;
    background: radial-gradient(circle, rgba(66, 165, 245, 0.35) 0%, transparent 72%);
    animation-duration: 18s;
    animation-delay: -6s;
}

.login7-orb-4 {
    width: 140px;
    height: 140px;
    bottom: 25%;
    left: 12%;
    background: radial-gradient(circle, rgba(144, 202, 249, 0.3) 0%, transparent 70%);
    animation-duration: 10s;
    animation-delay: -2s;
}

@keyframes login7OrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(18px, -22px) scale(1.06); }
    66% { transform: translate(-14px, 16px) scale(0.96); }
}

/* ——— Layout shell ——— */
.login7-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    perspective: 1400px;
}

.login7-card-stack {
    position: relative;
    width: 100%;
    max-width: 980px;
    transform-style: preserve-3d;
    animation: login7StackIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login7-card-stack:hover .login7-card-fx {
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 120px rgba(30, 136, 229, 0.28);
}

.login7-shell-compact .login7-card-stack {
    max-width: 480px;
}

.login7-card-aura {
    position: absolute;
    inset: -24px -16px;
    border-radius: 32px;
    background:
        radial-gradient(ellipse 70% 55% at 50% 45%, rgba(66, 165, 245, 0.35) 0%, transparent 72%),
        radial-gradient(ellipse 45% 40% at 20% 80%, rgba(0, 188, 212, 0.22) 0%, transparent 68%);
    filter: blur(8px);
    z-index: 0;
    pointer-events: none;
    animation: login7AuraPulse 5s ease-in-out infinite;
}

@keyframes login7AuraPulse {
    0%, 100% { opacity: 0.55; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.03); }
}

@keyframes login7StackIn {
    from {
        opacity: 0;
        transform: translateY(36px) scale(0.94) rotateX(8deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

.login7-card {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 980px;
    min-height: 520px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 80px rgba(30, 136, 229, 0.15);
    transition: box-shadow 0.45s ease;
}

.login7-card-fx {
    position: relative;
    isolation: isolate;
    animation: login7CardFloat 7s ease-in-out infinite;
}

.login7-card-shine {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}

.login7-card-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 55%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 35%,
        rgba(255, 255, 255, 0.22) 50%,
        rgba(255, 255, 255, 0.06) 65%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: login7CardShineSweep 6s ease-in-out infinite;
}

@keyframes login7CardShineSweep {
    0%, 72% { left: -120%; opacity: 0; }
    78% { opacity: 1; }
    100% { left: 140%; opacity: 0; }
}

@keyframes login7CardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.login7-card-border {
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        rgba(100, 181, 246, 0.95),
        rgba(0, 188, 212, 0.75),
        rgba(66, 165, 245, 0.9),
        rgba(129, 212, 250, 0.85),
        rgba(100, 181, 246, 0.95)
    );
    background-size: 300% 300%;
    animation: login7BorderGlow 8s linear infinite;
    z-index: 6;
    pointer-events: none;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

@keyframes login7BorderGlow {
    0% { background-position: 0% 50%; opacity: 0.75; }
    50% { opacity: 1; }
    100% { background-position: 200% 50%; opacity: 0.75; }
}

.login7-shell-compact {
    min-height: 100vh;
}

.login7-card-compact {
    flex-direction: column;
    max-width: 480px;
    min-height: auto;
    width: 100%;
}

.login7-form-side-full {
    width: 100%;
    border-radius: 24px;
    padding: 2.25rem 2rem 2rem;
}

.login7-compact-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, #42a5f5 0%, #1565c0 100%);
    box-shadow: 0 8px 22px rgba(21, 101, 192, 0.35);
}

@keyframes login7IconPop {
    from {
        opacity: 0;
        transform: scale(0.6) rotate(-12deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes login7IconGlow {
    0%, 100% { box-shadow: 0 8px 22px rgba(21, 101, 192, 0.35); }
    50% { box-shadow: 0 10px 28px rgba(0, 188, 212, 0.45), 0 0 20px rgba(66, 165, 245, 0.35); }
}

.login7-card-compact .login7-form-head {
    text-align: center;
}

.login7-card-compact .login7-form-head h2 {
    font-size: 1.45rem;
}

.login7-card-compact .login7-sub {
    margin-bottom: 1.25rem;
}

.login7-alert.success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.login7-back-link-wrap {
    margin-top: 1.25rem;
    text-align: center;
}

.login7-back-link {
    color: var(--login7-blue-bright);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login7-back-link:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.login7-inline-link {
    color: var(--login7-blue-bright);
    font-weight: 600;
    text-decoration: none;
}

.login7-inline-link:hover {
    text-decoration: underline;
    color: #0d47a1;
}

.login7-hero,
.login7-form-side {
    min-width: 0;
}

.login7-form-card > .login7-form-head {
    animation: login7FadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.login7-form-card > .login7-alert {
    animation: login7FadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.login7-form-card > .login7-form {
    animation: login7FadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}

.login7-form-card > .login7-note,
.login7-form-card > .login7-back-link-wrap {
    animation: login7FadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}

.login7-form-card > .login7-compact-icon {
    animation: login7IconPop 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both, login7IconGlow 3s ease-in-out 0.85s infinite;
}

.login7-hero-content {
    animation: login7FadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

@keyframes login7FadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes login7CardIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ——— Left hero panel ——— */
.login7-hero {
    flex: 1.05;
    position: relative;
    background: linear-gradient(160deg, rgba(13, 71, 161, 0.92) 0%, rgba(2, 119, 189, 0.88) 50%, rgba(0, 131, 143, 0.85) 100%);
    padding: 2.75rem 2.25rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.login7-hero-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    top: -60px;
    right: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 65%);
    animation: login7Pulse 4s ease-in-out infinite;
}

@keyframes login7Pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}

.login7-hero-rings {
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    pointer-events: none;
}

.login7-hero-rings span {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    animation: login7RingExpand 5s ease-out infinite;
}

.login7-hero-rings span:nth-child(2) { animation-delay: 1.6s; }
.login7-hero-rings span:nth-child(3) { animation-delay: 3.2s; }

@keyframes login7RingExpand {
    0% { transform: scale(0.35); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

.login7-hero-content {
    position: relative;
    z-index: 1;
}

.login7-brand-badge {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.25rem;
    animation: login7BadgeFloat 3s ease-in-out infinite;
}

@keyframes login7BadgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.login7-hero h1 {
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.login7-hero-content > p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
    max-width: 22rem;
}

.login7-hero-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.login7-hero-points li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.login7-hero-points li i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
}

/* ——— Form panel ——— */
.login7-form-side {
    flex: 1;
    background: rgba(255, 255, 255, 0.97);
    color: #0d2137;
    padding: 2rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.login7-form-card {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.login7-form {
    width: 100%;
    max-width: 100%;
}

.login7-field {
    display: block;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
}

.login7-form-head h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0a2540;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.login7-sub {
    color: #5c6f82;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.login7-alert {
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.login7-alert.warn {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #e65100;
    border: 1px solid #ffcc80;
}

.login7-alert.error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.login7-field-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #456;
    margin-bottom: 0.4rem;
}

.login7-input-wrap {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
}

.login7-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #90a4ae;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    pointer-events: none;
    z-index: 1;
}

.login7-input {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 2px solid #e3edf5;
    border-radius: 14px;
    background: #f8fbff;
    color: #0a2540;
    padding: 0.82rem 1rem 0.82rem 2.65rem;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.login7-input::placeholder {
    color: #90a4ae;
}

.login7-input:focus {
    border-color: var(--login7-blue-bright);
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(30, 136, 229, 0.15), 0 4px 16px rgba(30, 136, 229, 0.1);
}

.login7-input-wrap:focus-within .login7-input-icon {
    color: var(--login7-blue-bright);
}

.login7-input.is-invalid {
    border-color: #ef5350;
    box-shadow: inset 0 0 0 1px rgba(239, 83, 80, 0.2);
}

.login7-page .invalid-feedback {
    font-size: 0.8rem;
    color: #c62828;
    margin-top: 0.35rem;
}

.login7-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.35rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.login7-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #546e7a;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    user-select: none;
}

.login7-check input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.login7-check-box {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid #b0bec5;
    background: #fff;
    transition: all 0.2s ease;
    position: relative;
}

.login7-check input:checked + .login7-check-box {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    border-color: #1565c0;
}

.login7-check input:checked + .login7-check-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.login7-forgot {
    color: var(--login7-blue-bright);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.login7-forgot:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.login7-btn {
    position: relative;
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 0.9rem 1.25rem;
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 45%, #1565c0 100%);
    background-size: 200% 200%;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow:
        0 8px 22px rgba(21, 101, 192, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: login7BtnGradient 6s ease infinite;
}

@keyframes login7BtnGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.login7-btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    animation: login7BtnShine 3.5s ease-in-out infinite;
}

@keyframes login7BtnShine {
    0% { left: -100%; }
    40%, 100% { left: 150%; }
}

.login7-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 36px rgba(21, 101, 192, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.login7-btn:active {
    transform: translateY(0);
}

.login7-btn-text,
.login7-btn-icon {
    position: relative;
    z-index: 1;
}

.login7-btn-icon {
    transition: transform 0.25s ease;
}

.login7-btn:hover .login7-btn-icon {
    transform: translateX(4px);
}

.login7-note {
    margin-top: 1rem;
    color: #90a4ae;
    font-size: 0.78rem;
    text-align: center;
}

.login7-page .cms-login-layouts {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e8eef4;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.login7-page .cms-login-layouts-label {
    color: #78909c;
}

.login7-page .cms-login-layout-link {
    color: #546e7a;
    border-color: #cfd8dc;
    background: #f5f9fc;
}

.login7-page .cms-login-layout-link:hover {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #90caf9;
}

.login7-page .cms-login-layout-link.active {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    border-color: #1565c0;
    color: #fff;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.35);
}

/* ——— Responsive ——— */
@media (max-width: 860px) {
    .login7-card {
        flex-direction: column;
        min-height: auto;
        max-width: 440px;
    }

    .login7-hero {
        padding: 2rem 1.75rem;
        min-height: 220px;
    }

    .login7-hero-content > p,
    .login7-hero-points {
        display: none;
    }

    .login7-form-side {
        padding: 1.75rem 1.5rem 2rem;
    }
}

@media (max-width: 480px) {
    .login7-shell {
        padding: 1rem;
    }

    .login7-card {
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login7-bg-gradient,
    .login7-bg-grid,
    .login7-orb,
    .login7-hero-glow,
    .login7-hero-rings span,
    .login7-brand-badge,
    .login7-card,
    .login7-card-fx,
    .login7-card-border,
    .login7-card-shine,
    .login7-card-shine::before,
    .login7-card-aura,
    .login7-card-stack,
    .login7-form-card > *,
    .login7-hero-content,
    .login7-compact-icon,
    .login7-btn,
    .login7-btn-shine {
        animation: none !important;
    }

    .login7-card-stack:hover .login7-card-fx {
        box-shadow:
            0 32px 64px rgba(0, 0, 0, 0.35),
            0 0 0 1px rgba(255, 255, 255, 0.08),
            0 0 80px rgba(30, 136, 229, 0.15);
    }
}
