/* ===================================================
   NEW USER ACTIVATION PAGE  –  Prefix: nup-
   Extends login page styles (lp-)
   =================================================== */

/* ===== LOGIN PAGE STYLES - Prefix: lp- ===== */

:root {
    --lp-primary-orange: #FF7B53;
    --lp-secondary-orange: #FF9575;
    --lp-accent-purple: #4A3D7A;
    --lp-light-purple: #7B68B8;
    --lp-dark-purple: #2D2350;
}

.lp-wave-background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #E8E5F0 0%, #F5F3F8 50%, #FFF5F0 100%);
}

.lp-fiber-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
    rgba(74, 61, 122, 0.4) 0%,
    rgba(123, 104, 184, 0.3) 25%,
    rgba(255, 123, 83, 0.3) 75%,
    rgba(255, 149, 117, 0.4) 100%);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
    animation: lp-waveShift 20s ease-in-out infinite;
}

.lp-fiber-wave::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg, transparent 0px, transparent 50px, rgba(255,255,255,0.03) 50px, rgba(255,255,255,0.03) 52px);
    animation: lp-lineMove 30s linear infinite;
}

@keyframes lp-waveShift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(2deg); }
}

@keyframes lp-lineMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.lp-wave {
    position: absolute;
    width: 200%;
    height: 200%;
    opacity: 0.3;
    top: -50%;
    left: -50%;
}

.lp-wave-1 {
    background: repeating-radial-gradient(circle at 50% 50%, transparent 0px, transparent 30px, rgba(123,104,184,0.1) 32px, rgba(123,104,184,0.1) 34px);
    animation: lp-waveRotate1 30s linear infinite;
}

.lp-wave-2 {
    background: repeating-radial-gradient(circle at 50% 50%, transparent 0px, transparent 40px, rgba(255,123,83,0.08) 42px, rgba(255,123,83,0.08) 44px);
    animation: lp-waveRotate2 35s linear infinite reverse;
}

.lp-wave-3 {
    background: repeating-radial-gradient(circle at 50% 50%, transparent 0px, transparent 50px, rgba(123,104,184,0.06) 52px, rgba(123,104,184,0.06) 54px);
    animation: lp-waveRotate3 40s linear infinite;
}

@keyframes lp-waveRotate1 { 100% { transform: rotate(360deg) scale(1.2); } }
@keyframes lp-waveRotate2 { 100% { transform: rotate(-360deg) scale(1.3); } }
@keyframes lp-waveRotate3 { 100% { transform: rotate(360deg) scale(1.1); } }

.lp-signal-line {
    position: absolute;
    height: 3px;
    width: 400px;
    left: -400px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,123,83,0.5) 50%, transparent 100%);
    animation: lp-signalFlow 10s ease-in-out infinite;
}

.lp-signal-line:nth-child(5)  { top: 15%; animation-delay: 0s; }
.lp-signal-line:nth-child(6)  { top: 35%; animation-delay: 2.5s; background: linear-gradient(90deg, transparent 0%, rgba(123,104,184,0.5) 50%, transparent 100%); }
.lp-signal-line:nth-child(7)  { top: 55%; animation-delay: 5s; }
.lp-signal-line:nth-child(8)  { top: 75%; animation-delay: 7.5s; background: linear-gradient(90deg, transparent 0%, rgba(123,104,184,0.5) 50%, transparent 100%); }

@keyframes lp-signalFlow {
    0%   { left: -400px; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.lp-signal-pulse {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 3px solid rgba(255,123,83,0.3);
    border-radius: 50%;
    animation: lp-pulseExpand 5s ease-out infinite;
}

.lp-signal-pulse:nth-child(9)  { top: 5%;  left: 15%; animation-delay: 0s; }
.lp-signal-pulse:nth-child(10) { top: 50%; left: 75%; animation-delay: 1.5s; border-color: rgba(123,104,184,0.3); }
.lp-signal-pulse:nth-child(11) { top: 80%; left: 25%; animation-delay: 3s; }

@keyframes lp-pulseExpand {
    0%   { transform: scale(0.2); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.lp-network-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--lp-accent-purple);
    border-radius: 50%;
    opacity: 0.5;
    animation: lp-nodePulse 3s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(123,104,184,0.6);
}

.lp-network-node.lp-orange {
    background: var(--lp-primary-orange);
    box-shadow: 0 0 20px rgba(255,123,83,0.6);
}

@keyframes lp-nodePulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%       { transform: scale(1.5); opacity: 0.8; }
}

.lp-network-node:nth-child(12) { top: 12%; left: 20%; animation-delay: 0s; }
.lp-network-node:nth-child(13) { top: 25%; left: 85%; animation-delay: 1s; }
.lp-network-node:nth-child(14) { top: 45%; left: 30%; animation-delay: 2s; }
.lp-network-node:nth-child(15) { top: 65%; left: 80%; animation-delay: 0.5s; }
.lp-network-node:nth-child(16) { top: 78%; left: 35%; animation-delay: 1.5s; }
.lp-network-node:nth-child(17) { top: 88%; left: 90%; animation-delay: 2.5s; }

.lp-data-packet {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--lp-primary-orange);
    border-radius: 50%;
    opacity: 0.7;
    box-shadow: 0 0 15px rgba(255,123,83,0.8);
    animation: lp-packetMove 12s infinite linear;
}

.lp-data-packet:nth-child(18) { top: 10%; left: 5%;  animation-delay: 0s; }
.lp-data-packet:nth-child(19) { top: 35%; left: 85%; animation-delay: 3s;  background: var(--lp-accent-purple); box-shadow: 0 0 15px rgba(123,104,184,0.8); }
.lp-data-packet:nth-child(20) { top: 60%; left: 15%; animation-delay: 6s; }
.lp-data-packet:nth-child(21) { top: 85%; left: 75%; animation-delay: 9s;  background: var(--lp-accent-purple); box-shadow: 0 0 15px rgba(123,104,184,0.8); }

@keyframes lp-packetMove {
    0%   { transform: translate(0, 0);            opacity: 0; }
    10%  { opacity: 0.8; }
    90%  { opacity: 0.8; }
    100% { transform: translate(600px, -300px);   opacity: 0; }
}

.lp-fiber-line {
    position: absolute;
    width: 2px;
    height: 150px;
    background: linear-gradient(180deg, transparent 0%, rgba(123,104,184,0.3) 50%, transparent 100%);
    opacity: 0.15;
    animation: lp-fiberFlow 6s infinite ease-in-out;
}

.lp-fiber-line:nth-child(22) { top: 5%;  left: 20%; animation-delay: 0s; }
.lp-fiber-line:nth-child(23) { top: 15%; left: 65%; animation-delay: 2s; }
.lp-fiber-line:nth-child(24) { top: 50%; left: 10%; animation-delay: 4s; }
.lp-fiber-line:nth-child(25) { top: 70%; left: 75%; animation-delay: 1s; }

@keyframes lp-fiberFlow {
    0%, 100% { transform: translateY(0) scaleY(1);    opacity: 0.15; }
    50%       { transform: translateY(20px) scaleY(1.2); opacity: 0.25; }
}

.lp-grid-pattern {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(123,104,184,0.1);
    opacity: 0.08;
    animation: lp-gridFloat 10s infinite ease-in-out;
}

.lp-grid-pattern:nth-child(26) { top: 15%; left: 40%; animation-delay: 0s; }
.lp-grid-pattern:nth-child(27) { top: 55%; left: 60%; animation-delay: 3s; }

@keyframes lp-gridFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg);    opacity: 0.08; }
    50%       { transform: translate(30px, -30px) rotate(45deg); opacity: 0.15; }
}

/* ===== Page layout ===== */
.lp-login-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
    display: grid;
    grid-template-columns: 1fr 1fr;
    animation: lp-slideUp 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin: auto;
}

@keyframes lp-slideUp {
    from { opacity: 0; transform: translateY(60px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Brand section ===== */
.lp-brand-section {
    background: linear-gradient(135deg, #4A3D7A 0%, #5D4E8F 50%, #7B68B8 100%);
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.lp-brand-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, transparent 0px, transparent 60px, rgba(255,123,83,0.05) 60px, rgba(255,123,83,0.05) 62px);
    animation: lp-brandLineMove 25s linear infinite;
}

@keyframes lp-brandLineMove {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(80px, 80px); }
}

.lp-brand-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,123,83,0.2) 0%, transparent 70%);
    bottom: -300px;
    right: -300px;
    animation: lp-pulse 10s infinite;
}

@keyframes lp-pulse {
    0%, 100% { transform: scale(1);   opacity: 0.6; }
    50%       { transform: scale(1.3); opacity: 0.3; }
}

.lp-logo-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: lp-logoFadeIn 1.5s ease-out;
}

@keyframes lp-logoFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lp-logo-wrapper img {
    width: 220px;
    height: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 30px;
}

/* ===== Form section ===== */
.lp-form-section {
    padding: 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.lp-form-header {
    margin-bottom: 30px;
    animation: lp-formFadeIn 1.2s ease-out;
}

@keyframes lp-formFadeIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.lp-form-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #2D2350;
    margin-bottom: 8px;
}

.lp-form-header p {
    font-size: 15px;
    font-weight: 500;
    color: #666;
}

.lp-form-group {
    margin-bottom: 20px;
    animation: lp-inputSlideIn 1s ease-out backwards;
}

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

@keyframes lp-inputSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.lp-form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #2D2350;
    margin-bottom: 10px;
    transition: color 0.3s;
    font-family: 'Poppins', sans-serif;
}

.lp-input-wrapper {
    position: relative;
}

.lp-input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    border: 2px solid #E8E8E8;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    background: #FAFAFA;
    color: #333;
    outline: none;
}

.lp-input::placeholder { color: #999; }

.lp-input:focus,
.lp-input.lp-input-focused {
    border-color: #FF7B53;
    background: white;
    box-shadow: 0 0 0 4px rgba(255,123,83,0.1);
}

.lp-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #7B68B8;
    transition: color 0.3s;
    pointer-events: none;
}

.lp-input.lp-input-focused ~ .lp-input-icon,
.lp-input:focus ~ .lp-input-icon {
    color: #FF7B53;
}

.lp-input-icon svg {
    width: 20px;
    height: 20px;
}

.lp-forgot-password {
    text-align: right;
    margin-top: 8px;
}

.lp-forgot-password a {
    font-size: 14px;
    font-weight: 600;
    color: #FF7B53;
    text-decoration: none;
    transition: all 0.3s;
}

.lp-forgot-password a:hover {
    color: #FF6B43;
    text-decoration: underline;
}

/* ===== Login button ===== */
.lp-login-btn {
    width: 100%;
    padding: 15px;
    margin-top: 24px;
    background: linear-gradient(135deg, #FF7B53 0%, #FF9575 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(255,123,83,0.4);
    animation: lp-buttonSlideIn 1s ease-out backwards;
    animation-delay: 0.6s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 52px;
    position: relative;
}

@keyframes lp-buttonSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lp-login-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255,123,83,0.5);
}

.lp-login-btn:active:not(:disabled) { transform: translateY(-1px); }

.lp-login-btn.lp-loading {
    pointer-events: none;
    opacity: 0.8;
}

.lp-login-btn.lp-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: lp-spin 0.8s linear infinite;
}

@keyframes lp-spin { to { transform: rotate(360deg); } }

.lp-login-btn.lp-success {
    background: linear-gradient(135deg, #059669, #10B981);
}

.lp-login-btn:disabled { cursor: not-allowed; }

/* ===== Error alert ===== */
.lp-error-alert {
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FCA5A5;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.lp-validation-msg {
    color: #DC2626;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

/* ===== Support section ===== */
.lp-support-section {
    text-align: center;
    margin-top: 24px;
    animation: lp-supportFadeIn 1s ease-out backwards;
    animation-delay: 0.8s;
}

@keyframes lp-supportFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lp-support-section p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.lp-support-btn {
    padding: 12px 28px;
    background: #4A3D7A;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.lp-support-btn:hover {
    background: #5D4E8F;
    transform: translateY(-2px);
}

/* ===== Footer ===== */
.lp-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #999;
    z-index: 2;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .lp-login-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    .lp-brand-section { padding: 40px 30px; }
    .lp-logo-wrapper img { width: 180px; }
    .lp-form-section { padding: 40px 35px; }
    .lp-form-header h1 { font-size: 26px; }
}

@media (max-width: 480px) {
    .lp-brand-section { padding: 30px 25px; }
    .lp-form-section { padding: 30px 25px; }
    .lp-form-header h1 { font-size: 22px; }
    .lp-form-header p { font-size: 14px; }
    .lp-login-btn { padding: 16px; font-size: 16px; }
}


/* Success icon container */
.nup-success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    animation: nup-bounce 0.5s ease;
}

@keyframes nup-bounce {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Welcome icon */
.nup-welcome-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

/* Password toggle clickable area */
.nup-toggle-pw {
    cursor: pointer;
    transition: color 0.2s;
}

.nup-toggle-pw:hover {
    color: #FF7B53 !important;
}

/* ===== Password Strength Bar ===== */
.nup-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.nup-strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.nup-strength-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
}

.nup-strength-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Strength colors */
.nup-str-weak {
    color: #EF4444;
}

.nup-str-weak.nup-strength-fill {
    background: #EF4444;
}

.nup-str-fair {
    color: #F59E0B;
}

.nup-str-fair.nup-strength-fill {
    background: #F59E0B;
}

.nup-str-good {
    color: #3B82F6;
}

.nup-str-good.nup-strength-fill {
    background: #3B82F6;
}

.nup-str-strong {
    color: #22C55E;
}

.nup-str-strong.nup-strength-fill {
    background: #22C55E;
}

/* ===== Password Match Indicator ===== */
.nup-match {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.2s;
}

.nup-match-ok {
    color: #22C55E;
}

.nup-match-no {
    color: #EF4444;
}
