/* Login Page — matching orderthing.com exactly */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;600&display=swap');

.login-page {
    height: 100vh;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    margin: 0 -20px;
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

/* Green glow behind logo — same as orderthing.com */
.login-page::before {
    content: '';
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(90, 180, 30, 0.15) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

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

@keyframes floatin {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.login-card-wrap {
    position: relative;
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.login-card {
    background: transparent;
}

/* Logo */
.login-card-header {
    text-align: center;
    padding: 0;
    line-height: 0;
}

.login-logo {
    width: min(320px, 80vw);
    height: auto;
    filter: drop-shadow(0 0 40px rgba(90, 200, 20, 0.5));
    animation: floatin 3s ease-in-out infinite;
}

/* Form area */
.login-card-body {
    padding: 0 0.5rem;
    text-align: left;
}

.login-form-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    display: inline-block;
    text-align: left;
    background: linear-gradient(90deg, #ffffff 0%, #8adf20 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(138, 223, 32, 0.3);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.login-form-input:focus {
    border-color: #8adf20;
    box-shadow: 0 0 0 3px rgba(138, 223, 32, 0.15);
}

.login-button {
    width: 100%;
    padding: 0.7rem 1.75rem;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #6dc010, #8adf20);
    color: #0a0a0a;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.15s, box-shadow 0.15s;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(138, 223, 32, 0.4);
    color: #0a0a0a;
}

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

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-link {
    color: #8adf20;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.2s;
}

.login-link:hover {
    color: #a8f030;
    text-decoration: underline;
}

.login-remember-label {
    font-size: 0.8rem;
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff 30%, #8adf20 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-checkbox-input {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: #8adf20;
}

/* Divider between logo and form */
.login-card-body::before {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8adf20, transparent);
    border-radius: 2px;
    margin: 0 auto 0.5rem;
}

/* Toast notification — subtle top banner */
.login-toast {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0a0a0a;
    background: linear-gradient(90deg, #6dc010, #8adf20);
    letter-spacing: 0.03em;
    z-index: 10;
    animation: toastFade 4s ease-in-out forwards;
}

@keyframes toastFade {
    0% { opacity: 0; transform: translateY(-100%); }
    10% { opacity: 1; transform: translateY(0); }
    75% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-100%); }
}

/* Error message — inline, themed */
.login-error {
    font-size: 0.8rem;
    color: #ff6b6b;
    text-align: center;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 6px;
    background: rgba(255, 107, 107, 0.08);
}

/* Validation */
.login-form-input.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

/* Legal/compliance links inside login card (visible on all screens) */
.login-legal-links {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.8rem;
}

.login-legal-sep {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.4rem;
}

/* Footer text */
.login-footer {
    position: fixed;
    bottom: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.1em;
}

/* Mobile */
@media (max-width: 480px) {
    .login-page {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        padding: 1rem 0 2rem;
        justify-content: flex-start;
    }

    .login-page::before {
        width: 400px;
        height: 400px;
        top: -15%;
    }

    .login-logo {
        width: 75vw;
    }

    .login-card-body {
        padding: 0 0.75rem;
    }

    .login-legal-links {
        margin-bottom: 1rem;
    }

    .login-footer {
        display: none;
    }
}

/* Desktop */
@media (min-width: 481px) {
    .login-logo {
        width: 340px;
    }

    .login-card-wrap {
        max-width: 400px;
    }
}
