/* Center the form on the page */
.signin-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    gap: 3rem;
    flex-wrap: nowrap;
    background: linear-gradient(
        135deg,
        var(--bg-gradient-start),
        var(--bg-gradient-end)
    );
}

/* Card container */
.signin-card {
    width: 420px;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: fadeSlideUp 0.6s ease;
    text-align: center;
}

/* Title */
.signin-card h2 {
    font-size: 2.2rem;
    padding-bottom: 2rem;
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Inputs */
.signin-card input {
    width: 100%;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: border 0.3s;
}

.signin-card input:focus {
    border-color: var(--accent-color-1);
    outline: none;
}

/* Button */
.signin-card button {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--accent-color-1);
    background: transparent;
    color: var(--text-color);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.signin-card button:hover:not([disabled]) {
    background: var(--accent-color-1);
    color: white;
    box-shadow: 0 8px 20px rgba(100, 108, 255, 0.4);
    transform: translateY(-3px);
}

.signin-card button[disabled] {
    opacity: 0.7;
    cursor: wait;
}

/* Extra text */
.signin-card p {
    margin-top: 1rem;
    opacity: 0.9;
    color: var(--text-color);
}

.signin-card a {
    color: var(--accent-color-1);
    font-weight: 600;
}

/* Animation */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- HELP BUBBLE --- */
.help-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #646cff;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.help-bubble:hover {
    transform: scale(1.1);
    background: #535bf2;
}

/* --- HELP POPUP CARD --- */
.help-card {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 320px;
    padding: 1.5rem;
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    color: white;
    z-index: 9998;         /* IMPORTANT */
    animation: popupFade 0.25s ease-out forwards;
}

.help-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.help-card p {
    margin: 0;
    line-height: 1.4;
    color: var(--text-color);
}

/* Animation for popup */
@keyframes popupFade {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.forgot {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--accent-color-1);
    cursor: pointer;
    text-decoration: underline;
}

.forgot:hover {
    color: var(--accent-color-2);
}

.forgot:active {
    color: var(--text-color);
}