/* ============================
   PASARCLOUD - LOGIN PAGE
   Standalone CSS for /login
   ============================ */

* {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    overflow: hidden;
    position: relative;
}

/* ═══ Animated floating orbs background ═══ */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatOrb 8s ease-in-out infinite;
}

.orb:nth-child(1) {
    width: 300px;
    height: 300px;
    background: rgba(102, 126, 234, 0.5);
    top: -100px;
    left: -50px;
    animation-duration: 8s;
}

.orb:nth-child(2) {
    width: 250px;
    height: 250px;
    background: rgba(118, 75, 162, 0.5);
    bottom: -80px;
    right: -60px;
    animation-duration: 10s;
    animation-delay: -3s;
}

.orb:nth-child(3) {
    width: 200px;
    height: 200px;
    background: rgba(102, 126, 234, 0.3);
    top: 50%;
    right: 20%;
    animation-duration: 12s;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ═══ Login card with glow ═══ */
.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(30, 30, 50, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
    animation: cardEntry 0.6s ease-out;
}

.login-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), transparent, rgba(118, 75, 162, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: glowRotate 4s linear infinite;
}

@keyframes cardEntry {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes glowRotate {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.login-card h2 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ═══ Logo icon with pulse ═══ */
.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 8px 40px rgba(102, 126, 234, 0.6); }
}

/* ═══ Inputs ═══ */
.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: #fff;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    color: #fff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.input-group-text {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: #667eea;
    width: 46px;
    justify-content: center;
}

.input-group .form-control {
    border-radius: 0 12px 12px 0;
    border-left: none;
}

/* ═══ Show/hide password button ═══ */
.input-group .btn-toggle-pw {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    border-radius: 0 12px 12px 0;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 0.9rem;
    transition: color 0.2s;
    cursor: pointer;
}

.input-group .btn-toggle-pw:hover {
    color: #667eea;
}

.input-group .form-control.pw-input {
    border-radius: 0;
    border-right: none;
}

/* ═══ Login button ═══ */
.btn-login {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    padding: 0.85rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login .spinner-border {
    width: 1.1rem;
    height: 1.1rem;
    border-width: 2px;
}

/* ═══ Alert ═══ */
.alert-danger {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #f8d7da;
    border-radius: 12px;
    animation: shakeAlert 0.4s ease;
}

@keyframes shakeAlert {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.footer-text {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}
