<link rel="stylesheet" href="style.css?v=<?php echo time(); ?>">
/* --- The Kinetic "Coding Stella" Chase Card --- */
.login-box {
    position: relative;
    /* Initial small state */
    width: 220px;
    height: 100px;
    margin: 40px auto;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    
    /* Smooth expansion transition */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

/* Kinetic Hover Expansion */
.login-box:hover {
    width: 100%;
    max-width: 400px;
    height: 480px; /* Adjust based on form height */
    padding: 40px;
    justify-content: flex-start;
}

/* Static Logo/Header in the box */
.box-header {
    text-align: center;
    transition: all 0.5s ease;
    z-index: 10;
}

.box-header h2 {
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin: 0;
}

/* Hidden Content Logic */
.expanded-content {
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    margin-top: 0;
}

.login-box:hover .expanded-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    margin-top: 20px;
    transition-delay: 0.2s; /* Waits for box to grow a bit first */
}

/* --- Animated Electric Borders (4-Span Chase) --- */
.login-box span {
    position: absolute;
    display: block;
}

.login-box span:nth-child(1) {
    top: 0; left: -100%;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent));
    animation: chase1 2s linear infinite;
}

.login-box span:nth-child(2) {
    top: -100%; right: 0;
    width: 2px; height: 100%;
    background: linear-gradient(180deg, transparent, var(--primary));
    animation: chase2 2s linear infinite;
    animation-delay: 0.5s;
}

.login-box span:nth-child(3) {
    bottom: 0; right: -100%;
    width: 100%; height: 2px;
    background: linear-gradient(270deg, transparent, var(--accent));
    animation: chase3 2s linear infinite;
    animation-delay: 1s;
}

.login-box span:nth-child(4) {
    bottom: -100%; left: 0;
    width: 2px; height: 100%;
    background: linear-gradient(360deg, transparent, var(--primary));
    animation: chase4 2s linear infinite;
    animation-delay: 1.5s;
}

/* Keyframes for Chasing Light */
@keyframes chase1 { 0% { left: -100%; } 50%, 100% { left: 100%; } }
@keyframes chase2 { 0% { top: -100%; } 50%, 100% { top: 100%; } }
@keyframes chase3 { 0% { right: -100%; } 50%, 100% { right: 100%; } }
@keyframes chase4 { 0% { bottom: -100%; } 50%, 100% { bottom: 100%; } }

/* --- Forms & Typography --- */
.user-box { width: 100%; position: relative; }

.user-box input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    margin-bottom: 30px;
    border: none;
    border-bottom: 1px solid #333;
    outline: none;
    background: transparent;
    transition: 0.3s;
}

.user-box input:focus { border-bottom: 1px solid var(--accent); }

.footer-note {
    margin-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #71717a;
}

.footer-note a { color: var(--accent); text-decoration: none; font-weight: 600; }