/* LOGIN-CT — Login page styles
// ===================================================================================
// All styles for the login overlay, login box, inputs, checkboxes, and animations.
// Extracted from ct.css for modular organization.
// =================================================================================== */

/*login overlay*/

#login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #1a0a2e 0%, #0d0015 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    animation: overlayPulse 4s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%,
    100% {
        background: radial-gradient(
            ellipse at center,
            #1a0a2e 0%,
            #0d0015 100%
        );
    }
    50% {
        background: radial-gradient(
            ellipse at center,
            #2a1a4e 0%,
            #0d0015 100%
        );
    }
}

/*login box*/

#login-box {
    background: linear-gradient(
        135deg,
        #fff5e6 0%,
        #ffe0b2 30%,
        #ffcc80 60%,
        #ffb3b3 100%
    );
    border: 3px solid #ff8c42;
    padding: 44px 40px 36px;
    border-radius: 24px;
    text-align: center;
    min-width: 360px;
    box-shadow:
        0 0 40px rgba(255, 140, 66, 0.4),
        0 0 80px rgba(255, 100, 100, 0.2);
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/*login title*/

#login-title {
    font-size: 38px;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ff6b35, #ff3c7f, #ff1493, #ff6b35);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation:
        titleBounce 2s ease-in-out infinite,
        titleGradient 4s ease-in-out infinite;
}

@keyframes titleBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-4px);
    }
    75% {
        transform: translateY(2px);
    }
}

@keyframes titleGradient {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/*login subtitle*/

.login-sub {
    font-size: 16px;
    font-style: italic;
    color: #b36b4e;
    margin-top: 0;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in 0.4s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*login inputs stacked*/

#login-box label {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #d4542e;
    margin-top: 16px;
    text-align: left;
    letter-spacing: 0.5px;
}

#login-user,
#login-email {
    width: 100%;
    padding: 12px 14px;
    font-size: 17px;
    margin-top: 6px;
    border: 2.5px solid #ff8c42;
    border-radius: 12px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.85);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
    outline: none;
}

#login-user:focus,
#login-email:focus {
    transform: scale(1.03);
    box-shadow:
        0 0 14px rgba(255, 140, 66, 0.5),
        0 0 28px rgba(255, 60, 127, 0.2);
    border-color: #ff3c7f;
}

/*login paws*/

.login-paws {
    text-align: center;
    font-size: 30px;
    letter-spacing: 10px;
    margin-top: 22px;
    animation: wiggle 1.5s ease-in-out infinite;
}

@keyframes wiggle {
    0%,
    100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-8deg);
    }
    75% {
        transform: rotate(8deg);
    }
}

/*login button*/

#login-btn {
    margin-top: 14px;
    padding: 13px 36px;
    font-size: 21px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #ff6b6b, #ff3c7f, #ff1493);
    background-size: 200% 200%;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 60, 127, 0.4);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    animation: titleGradient 4s ease-in-out infinite;
}

#login-btn:hover {
    transform: scale(1.07);
    box-shadow:
        0 6px 24px rgba(255, 60, 127, 0.6),
        0 0 40px rgba(255, 107, 107, 0.3);
}

#login-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(255, 60, 127, 0.4);
}

/*login error*/

#login-error {
    color: crimson;
    font-size: 15px;
    margin-top: 12px;
    font-weight: bold;
}

#login-error:not(:empty) {
    animation: shake 0.4s ease-in-out;
}

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

/*login checkbox*/

.login-check {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#cat-love-check {
    width: 20px;
    height: 20px;
    accent-color: #ff3c7f;
    cursor: pointer;
}

.check-label {
    font-size: 17px;
    font-weight: bold;
    color: #d4542e;
    cursor: pointer;
    user-select: none;
}

/*login button disabled*/

#login-btn:disabled {
    background: linear-gradient(135deg, #ccc, #aaa);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

#login-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/*login footer*/

.login-footer {
    font-size: 13px;
    font-style: italic;
    color: #b3836e;
    margin-top: 16px;
}

/*logout link*/

#logout-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    background-color: crimson;
    border-radius: 6px;
    text-decoration: none;
}

#logout-link:hover {
    background-color: darkred;
}
